Hi Andres,
 Seems it works! 
Actually I want to create inside tiddler an inline alert message users can 
close it (dismiss it)
Something like this
https://getbootstrap.com/docs/4.3/components/alerts/#dismissing

BUT in pure wikitext! (Pure TW script)

--Mohammad


On Monday, September 16, 2019 at 10:25:27 PM UTC+4:30, Anjar wrote:
>
> Hi,
>
> I guess there are several ways; you could create a tiddler with content 
> "<$action-setfield $tiddler="temp" text="a" />" and tag it 
> "$:/tags/StartupAction" to set the temp-field to "a" at startup. 
>
> But, if I'm not mistaken, you can also create a temporary state tiddler 
> "$:/temp/temp" that is not saved?
>
>
> Best,
> Anders
>
> mandag 16. september 2019 17.16.50 UTC+2 skrev Mohammad følgende:
>>
>> Create a tiddler at tiddlywiki.com with below content
>>
>> \define macx()
>> <$set name=x value={{temp}}>
>> <$list filter="[<x>!match[x]]">
>> This is a test
>> <$button 
>>  set="temp" setTo="x"
>>  class="tc-btn-invisible tc-tiddlylink">&times;</$button>
>> </$list>
>> </$set> 
>> \end
>>
>> <<macx>>
>>
>>
>> Save and see the result!
>>
>> It shows
>>
>> This is a test ×
>>
>> On click on x, the content will be disappeared! That is what I want!
>>
>> Then: I like to reload the wiki (or next time I visit the wiki) and see 
>> the This is a test ×  again!
>> How it can be done? Note user may use single file wiki or node.js version 
>> ($:/state tiddlers are cleared)!
>>
>> --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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2228091a-0da3-4d53-85f3-a782b12c0779%40googlegroups.com.

Reply via email to