Hi. I see that in theme files, there are some conditional constructs available,
for example:
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["selected"]}],
"attributes": ["dirty"],
"settings": ["highlight_modified_tabs"],
I played around with “settings”, and it seems to honor any user-defined key here.
however, I need to define conditions based on the current view.
it seems “attributes” does this, since “dirty”, “selected” refer to views
my questions are :
- what attributes are available ?
- can I define and set my own attributes programmatically ?