The Wayback Machine - https://web.archive.org/web/20220329061234/https://github.com/fyne-io/fyne/issues/1904
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

Cannot disable container.TabItem #1904

Open
pohanlSUM opened this issue Feb 5, 2021 · 2 comments
Open

Cannot disable container.TabItem #1904

pohanlSUM opened this issue Feb 5, 2021 · 2 comments
Labels
enhancement good first issue Hacktoberfest

Comments

@pohanlSUM
Copy link

@pohanlSUM pohanlSUM commented Feb 5, 2021

Is your feature request related to a problem? Please describe:

We cannot disable container.TabItem using attribute inside container.TabItem

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

if tabs.CurrentTabIndex() != 0 && someCondition {
fmt.Println("Disable!")
tabs.SelectTab(tabs.Items[0])
}

Describe the solution you'd like to see:

There is an attribute in container.TabItem named "Disable", default value is false.
When Disable is set to true, user cannot select this tab

@pohanlSUM
Copy link
Author

@pohanlSUM pohanlSUM commented Feb 5, 2021

widget.treeNode has same problem

@andydotxyz
Copy link
Member

@andydotxyz andydotxyz commented Feb 6, 2021

Good request for TabItem. However TreeNode is not the same, that is just an ID and it’s up to the developer to manage the presentation of the tree nodes.

@andydotxyz andydotxyz added the enhancement label Feb 6, 2021
@andydotxyz andydotxyz added this to the Aberlour (next release) milestone Feb 6, 2021
@andydotxyz andydotxyz added the good first issue label Apr 16, 2021
@andydotxyz andydotxyz removed this from the Aberlour (2.1) milestone Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue Hacktoberfest
2 participants