mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-04 21:03:55 +00:00
Add example of actions attribute to SelectWidget documentation (#6181)
This commit is contained in:
parent
6cc76fe6ab
commit
dcb083abb0
@ -1,7 +1,7 @@
|
|||||||
caption: select
|
caption: select
|
||||||
created: 20131024141900000
|
created: 20131024141900000
|
||||||
modified: 20211009121812691
|
modified: 20211108165037846
|
||||||
tags: Widgets TriggeringWidgets
|
tags: TriggeringWidgets Widgets
|
||||||
title: SelectWidget
|
title: SelectWidget
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
@ -129,3 +129,16 @@ This example uses the `multiple` keyword to specify that we should be able to se
|
|||||||
<$view field='title' /><br />
|
<$view field='title' /><br />
|
||||||
</$list>
|
</$list>
|
||||||
"/>
|
"/>
|
||||||
|
|
||||||
|
!! Actions
|
||||||
|
|
||||||
|
This example uses the actions attribute to apply days of the week as tags to the current tiddler.
|
||||||
|
|
||||||
|
<$macrocall $name="wikitext-example-without-html" src="""<$select tiddler='$:/generated-list-demo-state' field='actions-test'
|
||||||
|
actions='<$action-listops $field="myfield" $tags={{$:/generated-list-demo-state!!actions-test}}/>'
|
||||||
|
>
|
||||||
|
<$list filter='[list[Days of the Week]]'>
|
||||||
|
<option><$view field='title'/></option>
|
||||||
|
</$list>
|
||||||
|
</$select>
|
||||||
|
"""/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user