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

Request: Add API state for internal TST tabs #1605

Closed
joshuacant opened this issue Nov 22, 2017 · 2 comments
Closed

Request: Add API state for internal TST tabs #1605

joshuacant opened this issue Nov 22, 2017 · 2 comments

Comments

@joshuacant
Copy link

Hi, I have had a user of my addon ask for a feature that would react to tabs created by TST itself, such as the "group-tab.html" page: joshuacant/tst-wheel_and_double#4

Could you add a new class to the states list (https://github.com/piroor/treestyletab/wiki/API-for-other-addons#get-tree-information) for these tabs, called something like "internal"? Then addons such as mine would know which tabs were placeholders, like group-tab.html, and react to them according to our needs.

@piroor
Copy link
Owner

piroor commented Nov 27, 2017

Undocumented but such dummy tabs already have a class group-tab. Moreover, all tabs have an attribute data-current-uri and you can use it for styling like .tab[data-current-uri^="https://"] .label { color: blue !important; }

@joshuacant
Copy link
Author

Yep. group-tab is in there. Sneaky! Thanks!

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