Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Refresh only TabItem (without Refreshing its content) #4727

Open
2 tasks done
matwachich opened this issue Mar 18, 2024 · 0 comments
Open
2 tasks done

Ability to Refresh only TabItem (without Refreshing its content) #4727

matwachich opened this issue Mar 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@matwachich
Copy link
Contributor

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Sometimes I need to update TabItem title and/or icon (updating items count for example...).
But when calling app_or_docTab.Refresh, this will trigger refreshing of all tabs contents (wich is not desired because very heavy operation).

Is it possible to construct a solution with the existing API?

Not really...

Describe the solution you'd like to see.

app/docTab.Refresh => will refresh only tab items
app/docTab.RefreshContent => will refresh all tabs contents

or

app/docTab.Refresh => keeps current behaviour
app/docTab.RefreshTabs or Items => refresh only tab items

why not also:
app/docTab.SetItem(title string, icon fyne.Resource) (see #1289)

app/docTab.RefreshItem(ti *container.TabItem, refreshContent bool)
app/docTab.RefreshItemIndex(id int, refreshContent bool)

@andydotxyz andydotxyz added this to the "Elgin" release, early 2024 milestone Apr 2, 2024
@andydotxyz andydotxyz added the enhancement New feature or request label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants