You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new signal: int idx close_button_pressed
returns tab index with just pressed button.
I think pressing the button shouldn't close the tab, only emit the signal. User should do this manually using remove_child()
It fits better with the current TabContainer architecture/design (auto closing the tab when pressing its close button) and this is more flexible, as it allows the user to add prompts, for example the popup "do you really want to close this tab?"
If this enhancement will not be used often, can it be worked around with a few lines of script?
I could use Tabs but this is not so handy
Is there a reason why this should be core and not an add-on in the asset library?
I think close tab buttons is a good UX solution that many modern apps use (popular browsers like Chrome etc).
Godot editor also use it for example in Scene tabs.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
plugins
Describe the problem or limitation you are having in your project
I need an easy way to add close buttons in
TabContainer
like Godot Editor scene tabs haveDescribe the feature / enhancement and how it helps to overcome the problem or limitation
Adding
CloseButtonDisplayPolicy
inTabContainer
would solve the problemDescribe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
This could work the same way as in
Tabs
https://docs.godotengine.org/ru/stable/classes/class_tabs.htmlsee CloseButtonDisplayPolicy
new signal:
int idx close_button_pressed
returns tab index with just pressed button.
I think pressing the button shouldn't close the tab, only emit the signal. User should do this manually using
remove_child()
It fits better with the current TabContainer architecture/design (auto closing the tab when pressing its close button) and this is more flexible, as it allows the user to add prompts, for example the popup "do you really want to close this tab?"
If this enhancement will not be used often, can it be worked around with a few lines of script?
I could use Tabs but this is not so handy
Is there a reason why this should be core and not an add-on in the asset library?
I think
close tab
buttons is a good UX solution that many modern apps use (popular browsers like Chrome etc).Godot editor also use it for example in Scene tabs.
The text was updated successfully, but these errors were encountered: