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

Closed
pohanlSUM opened this issue Feb 5, 2021 · 4 comments
Closed

Cannot disable container.TabItem #1904

pohanlSUM opened this issue Feb 5, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest

Comments

@pohanlSUM
Copy link

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

widget.treeNode has same problem

@andydotxyz
Copy link
Member

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 New feature or request label Feb 6, 2021
@andydotxyz andydotxyz added this to the Aberlour (next release) milestone Feb 6, 2021
@andydotxyz andydotxyz added the good first issue Good for newcomers label Apr 16, 2021
@andydotxyz andydotxyz removed this from the Bowmore Release (early 2022) milestone Jun 3, 2022
@Aakash-Jakhmola
Copy link

@andydotxyz This needs to be closed.

@andydotxyz
Copy link
Member

On develop ready for v2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants