Hi Eric,
 Your solution works excellent. My question is : links do not work in 
modal, how one can gray out them?

--Atro

On Thursday, November 5, 2020 at 10:07:31 PM UTC+3:30 Eric Shulman wrote:

> On Thursday, November 5, 2020 at 7:23:45 AM UTC-8, David Gifford wrote:
>>
>> I just want to make it easier to open modals as tiddlers, for me, to edit 
>> them, and for users, to print them...a simple link to open the tiddler from 
>> the modal...
>
>
> It's sort of a hack, but here's an example, using $action-listops to 
> directly modify the $:/StoryList!!list field contents:
> <$button> open modal
>    <$action-setfield $tiddler="$:/temp/modal"
>       subtitle="Demo Modal"
>       text="Message goes here"
>       footer="""
>          <$button message="tm-close-tiddler"> close
>             <$action-deletetiddler $tiddler="$:/temp/modal"/>
>          </$button>
>          <$button message="tm-close-tiddler"> view
>             <$action-listops $tiddler="$:/StoryList" 
> $subfilter="[[$:/temp/modal]]" />
>          </$button>
>          <$button message="tm-close-tiddler"> edit
>             <$navigator>
>             <$action-sendmessage $message="tm-edit-tiddler" 
> $param="$:/temp/modal" />
>             <$action-listops $tiddler="$:/StoryList" $subfilter="[[Draft 
> of '$:/temp/modal']]" />
>             </$navigator>
>          </$button>
>       """ />
>    <$action-sendmessage $message="tm-modal" $param="$:/temp/modal" />
> </$button>
>
> Notes:
> 1) The $action-listops puts the tiddler at the end of the 
> $:/StoryList!!list
> 2) To move the tiddler to the start of the $:/StoryList!!list, you can 
> use: $subfilter="[[$:/temp/modal]] +[putfirst[]]"
> 3) In either case, modifying the $:/StoryList!!list *does not scroll the 
> tiddler into view*.
>
> enjoy,
> -e
>

-- 
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/f3da3306-3c2c-4edd-966c-bf811cb972cfn%40googlegroups.com.

Reply via email to