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

Allow hiding the close icon on DocTab TabItems #5527

Open
2 tasks done
DaanVervacke opened this issue Feb 10, 2025 · 1 comment
Open
2 tasks done

Allow hiding the close icon on DocTab TabItems #5527

DaanVervacke opened this issue Feb 10, 2025 · 1 comment

Comments

@DaanVervacke
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

By default, TabItems appended to a DocTab component have a close button next to the text. This is useful for closing documents, as originally intended. However, there is currently no option to hide the close button completely.

For users looking for a more spreadsheet-like experience—where tabs function like sheet selectors in Excel or LibreOffice Calc—an option to hide the close button would be beneficial. Users could still switch between tabs, and a right-click context menu could provide the option to close a tab when necessary.

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

No, there is currently no way to obtain this result using the API.

Describe the solution you'd like to see.

Introduce a property/function (e.g., hideCloseButton) that allows developers to hide the close button on TabItems.
Ensure users can still close tabs through an alternative method, such as a right-click menu.

@andydotxyz
Copy link
Member

What is the benefit of hiding a feature and the requiring the developers add it in some other context?

I think this ticket is missing the why of the request which is helpful in getting a good API.

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

No branches or pull requests

2 participants