Cannot disable container.TabItem #1904
Milestone
Comments
|
widget.treeNode has same problem |
|
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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
The text was updated successfully, but these errors were encountered: