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

Add add tab button in TabContainer #2289

Closed
me2beats opened this issue Feb 14, 2021 · 1 comment
Closed

Add add tab button in TabContainer #2289

me2beats opened this issue Feb 14, 2021 · 1 comment

Comments

@me2beats
Copy link

Describe the project you are working on

plugins

Describe the problem or limitation you are having in your project

I need Add tab "+" button in TabContainer like Godot Editor scene tabs have:
tabs1

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Adding add tab button in TabContainer would solve the problem

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

  1. new propery:
    bool show_add_tab -> true to show add tab button, false to hide it

  2. new signal:
    int add_button_pressed
    This button should do nothing, only emit the signal.
    User should connect to the signal and add a child control with add_child() when the signal is fired/triggered.

If this enhancement will not be used often, can it be worked around with a few lines of script?

It seems this is doable using Tabs, but isn't trivial if you want it to work like in Godot scene tabs.

Is there a reason why this should be core and not an add-on in the asset library?

Add-a-tab button is a common UX solution for adding tabs. A lot of apps use it.

@YuriSizov
Copy link
Contributor

A duplicate of a more general proposal #2250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants