[tw5] Re: Any idea how to collapse/expand section within a tiddler

2023-12-20 Thread TeeDub
I initially got a portion of this somewhere else, but I have added to it a lot. It works. As a sidenote, I'm pretty confused about how/why the checkbox field works like this (it seems to be interchangeable with the state tiddler?). That's the bit I got somewhere else. In any case, I used

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2023-12-20 Thread TeeDub
Sorry I didn't whittle this down more, but it might be interesting for several reasons. I initially got a portion of this somewhere else, but I have added to it a lot. It works. As a sidenote however, I'm pretty confused about how/why the checkbox field works like this (it seems to be

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2023-12-20 Thread TeeDub
This kind of crazy. It is a set of expanding sections applied to a list filter. It uses a checkbox with a field instead of a button. I'm actually very confused as to why/how the checkbox field works with the state tiddler. Except that the qualify macro is applied to the checkbox field's

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
Final Version: \define fold(heading, text) <$button class="tc-btn-invisible" popup=<>> $heading$ {{$:/core/images/fold-button}} <$reveal type="nomatch" state=<> text=""> $text$ \end Changed the image from chevron-right to fold-button. It is a smaller icon so it doesn't bother as much without

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
I tried this version and it seems to work: \define fold(heading, text) <$button class="tc-btn-invisible" popup=<>> $heading$ {{$:/core/images/chevron-right}} <$reveal type="nomatch" state=<> text=""> $text$ \end Only problem is that the arrow button now stays the same but i think i can live

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
I didn't even create a second button though :( All the formatting disappears the moment i enclose my text into the folds. On Tuesday, May 19, 2020 at 9:25:14 PM UTC+5:30, Mat wrote: > > Reet Pandher wrote: >> >> Now it works but it completely removes the formatting of the hidden >> text!!  >> >

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Mat
Reet Pandher wrote: > > Now it works but it completely removes the formatting of the hidden text!! >  > Try adding an empty row before the second button. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
Hi Eric, Now it works but it completely removes the formatting of the hidden text!!  On Tuesday, May 19, 2020 at 8:58:45 PM UTC+5:30, Eric Shulman wrote: > > On Tuesday, May 19, 2020 at 8:08:15 AM UTC-7, Reet Pandher wrote: >> >> I tried it and it displays the heading with the right arrow but

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
Wink Wink On Tuesday, May 19, 2020 at 8:35:23 PM UTC+5:30, Mat wrote: > > Reed and Eric > > Incidentally I was just pondering over this earlier today. I don't have > any answer but I think it ought to be possible to make a "markup"

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Eric Shulman
On Tuesday, May 19, 2020 at 8:08:15 AM UTC-7, Reet Pandher wrote: > > I tried it and it displays the heading with the right arrow but when i > click on the heading to expand text, no text appears *and *the heading > disappears as well. When i click anywhere on the screen the heading >

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
Hi Eric, I tried it and it displays the heading with the right arrow but when i click on the heading to expand text, no text appears *and *the heading disappears as well. When i click anywhere on the screen the heading re-appears. I am using the same syntax to call the *fold* macro that tobias

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Mat
Reed and Eric Incidentally I was just pondering over this earlier today. I don't have any answer but I think it ought to be possible to make a "markup" kind of thing that converts + characters into revealwidgets,ie +foo -bar Lorem ipsum Lorem ipsum +baz + In the example, the "bar" is opened

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Eric Shulman
On Tuesday, May 19, 2020 at 7:31:14 AM UTC-7, Reet Pandher wrote: > > Just wanted to check if there is any way to add a arrow indicator to the > collapsed section to your macro code. > Try this: \define fold(heading, text) <$reveal type="match" state=<> text=""> <$button class="tc-btn-invisible"

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2020-05-19 Thread Reet Pandher
Hi Tobias, Sorry to bring up such an old issue. Just wanted to check if there is any way to add a arrow indicator to the collapsed section. I tried a few other Macros which have the arrow feature but all of them remove the formatting of the heading text. So would there be a way to add an arrow

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-12-19 Thread CJ Veniot
G'day, I'm a rather big fan of Thomas Elmiger's Details Widget. (Just to put in a plug, PUN! , from a humble user's perspective?) I haven't pushed the plugin to the limit yet, but sneak a peek at my little project to see how I've experimented with Details Widget so far:

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-12-19 Thread TonyM
Don't worry more ideas will come along soon :) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-12-19 Thread A Gloom
InflamedSebi, Very interesting-- I am finding myself unable to keep up with all the ideas everyone presents here : ) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-12-18 Thread InflamedSebi
Imma just leave this here: \define fold(id, caption, content) <$set name="controller" value={{{ [[$:/temp/state/]addsuffixaddsuffix[/fold/]addsuffix[$id$]] }}}> <$reveal type="nomatch" state=<> text="open"> <$button class="tc-btn-invisible" set=<> setTo="open"> ''$caption$''

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-06 Thread Rick Yagodich
Only that same edit-from-parent applied to a buttonTemplate for the <> macro… which is no different. On Sunday, 6 October 2019 20:29:01 UTC+1, A Gloom wrote: > > Cool! *pockets code* Do you have any more nifty code? > -- You received this message because you are subscribed to the Google

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-06 Thread A Gloom
Cool! *pockets code* Do you have any more nifty code? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-06 Thread Rick Yagodich
On Sunday, 6 October 2019 07:30:32 UTC+1, A Gloom wrote: > > > Interesting... *stuffs macro in pocket when no one is looking* : ) > If you want the edit-from-parent, insert this between $set and first $reveal (you'll need the FontAwesome plugin for it to work): <$button> <$action-navigate

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-06 Thread A Gloom
> > OK, I have now got a version that actually works (slimmed down version - > mine uses FontAwesome icons and has an edit-from-controller link, too) > Interesting... *stuffs macro in pocket when no one is looking* : ) -- You received this message because you are subscribed to the Google

Re: [tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-05 Thread Mohammad Rahmani
You may find two different version of *slider* in Tw-Scripts which works for this purpose. Mohammad On Sat, Oct 5, 2019, 5:20 PM Rick Yagodich wrote: > OK, I have now got a version that actually works (slimmed down version - > mine uses FontAwesome icons and has an edit-from-controller link,

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-05 Thread Rick Yagodich
OK, I have now got a version that actually works (slimmed down version - mine uses FontAwesome icons and has an edit-from-controller link, too) \define fold(content) <$set name="controller" value={{{ [[$:/state/]addsuffix addsuffix[/fold/]addsuffix] }}}> <$reveal type="nomatch" state=<>

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-04 Thread A Gloom
I checked the macro out and duplicated your issue as well-- not fully familiar with the mechanisms used (quality) When the macro unfolds section 1 it writes " (43,136,154,76) " to the "$:/state/Section One--(string of numbers)" and when clicking on section 2 changes it to another set of 4

[tw5] Re: Any idea how to collapse/expand section within a tiddler

2019-10-04 Thread Rick Yagodich
I've just implemented my own macro derived from this, but it has an issue, which turns out is present in this sample, too. Clicking anywhere on the expandable portion of the fold collapses it down to the title. How do I ensure that only the intended <$button> is a trigger to open/close the