vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.67k stars 729 forks source link

rename tabs #2544

Open seanbirchall opened 3 months ago

seanbirchall commented 3 months ago

Describe the problem your feature will solve. Add ability rename tabs. Renaming nodes already works great!

Describe the solution you'd like Copy some of the code from renaming nodes to tabs... I'll give it a shot!

Describe alternatives you've considered None should be doable maybe weird when sorting is enabled. Right now I just send a js alert to rename tabs, but would be great if I could just double click in to rename. I also disabled sorting as my current implementation can be buggy if I sort and double click at the same time. Probably do to some of the css I'm using, but haven't looked into it enough.

Additional context I'm making an open source IDE to the R programming language similar to RStudio and compiled to WASM / shinylive. I've been really enjoying w2ui. In fact it has many other components I'll likely start replacing in my existing app. Right now I'm only using tabs, but I plan to use sidebar nodes for a file browser, and might make the switch to use resizable layout for everything... right now I'm just using split.js.

You can check it out here

Thank you for creating this, it's great.

vitmalina commented 2 months ago

The link you provided is not working for me. :(

As for tab renaming, I do not have free time to do it right now, but if you can implement it, submit PR and I will merge it.

seanbirchall commented 2 months ago

@vitmalina ya I'm going to be slow to get to it, but planning on working on it.