Note
 This is a proposal! Note that TW still creates a state tiddler here it 
creates a tiddler show and hide!
My proposal is to remove needs for state tiddlers in such a case!

--Mohammad

On Sunday, July 21, 2019 at 6:58:33 AM UTC+4:30, Mohammad wrote:
>
> Example
>  Create a tiddler in https://tiddlywiki.com/
> and put below script inside the it and save!
>
> <$vars stVar="show">
>
> <$button set=<<stVar>> setTo="show">Show me</$button>
> <$button set=<<stVar>> setTo="hide">Hide me</$button>
>
> <$reveal type="match" state=<<stVar>> text="show">
>
> ! This is the revealed content
> And this is some text
>
> </$reveal>
>
>
> You will see it works. If so, I think in some part we can remove the use 
> of state Tiddler and qualify macro and like that!
> I know if scripts work in different scope still we need global variables 
> and we have to use the state tiddler / state field and state index!
>
> What do you think?
>
>
> --Mohammad
>
>
> On Sunday, July 21, 2019 at 6:52:02 AM UTC+4:30, Mohammad wrote:
>>
>> Some widgets use state tiddlers to store a state for further operations!
>> My question is can we use state variable instead of state tiddler / state 
>> field?
>> The benefit is you dont need anymore to create new tiddler, have unique 
>> tiddler and so on
>>
>> for example
>> <$vars myvar="yes" >
>>
>>
>> <$button set=<<stVar>> setTo="no" ....
>>
>>
>> <$reveal type=match state=<<stVar>> ...
>> .
>> .
>> .
>> </$vars>
>>
>>
>>
>>
>>
>> --Mohammad
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5e105d5-06be-485a-aceb-cf7568677fda%40googlegroups.com.

Reply via email to