[tw5] Re: How can I change css attributes once a button is pressed?

2020-05-17 Thread Mat
Another approach would be to create a stylesheet tiddler with all the to-be-invidible classes defined, i.e tags: $:/tags/Stylesheet type: text/css text: .class1, .class2, .class3, . { display:none; } And then use a button to toggle the "$:/tags/Stylesheet"-tag on this stylesheet: <$r

[tw5] Re: How can I change css attributes once a button is pressed?

2020-05-17 Thread Jakob
This is really clever. Thanks a lot! Am Sonntag, 17. Mai 2020 10:07:36 UTC+2 schrieb BurningTreeC: > > Hi Jakob, > > you could create a toggle button like this: > > <$button><$list filter="[[$:/state/invisible]is[missing]] > [{$:/state/invisible}match[show]] " emptyMessage=""" > <$action-setfiel

[tw5] Re: How can I change css attributes once a button is pressed?

2020-05-17 Thread BurningTreeC
Hi Jakob, you could create a toggle button like this: <$button><$list filter="[[$:/state/invisible]is[missing]] [{$:/state/invisible}match[show]] " emptyMessage=""" <$action-setfield $tiddler="$:/state/invisible" text="show"/>SHOW """> <$action-setfield $tiddler="$:/state/invisible" text="hide"/