fix: filter => subfilter
This commit is contained in:
parent
411887d121
commit
4384a3d6c8
|
@ -2,10 +2,10 @@ title: $:/snippets/LayoutSwitcher
|
|||
tags: $:/tags/ControlPanel/Appearance
|
||||
caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
|
||||
|
||||
\whitespace trim
|
||||
\procedure layouts-filter() [all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]
|
||||
|
||||
\procedure layout-item()
|
||||
\whitespace trim
|
||||
<div class=<<cls>>>
|
||||
<$link to={{!!title}}>
|
||||
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
||||
|
@ -14,13 +14,11 @@ caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
|
|||
\end
|
||||
|
||||
\procedure input-next-actions(step:1)
|
||||
\function layouts() [filter<layouts-filter>]
|
||||
<$log layouts=<<layouts>> aaa="aaa" />
|
||||
\function layouts() [subfilter<layouts-filter>]
|
||||
<$log layouts=<<layouts>> bbb="bbb" />
|
||||
<$action-sendmessage $message="tm-navigate" $param={{{[<layouts>cycle<layouts>,<step>]}}}/>
|
||||
\end
|
||||
|
||||
|
||||
\whitespace trim
|
||||
<$linkcatcher to="$:/layout">
|
||||
<$keyboard key="((input-up))" actions=<<input-next-actions>>>
|
||||
<$keyboard key="((input-down))" actions=<<input-next-actions "-1">>>
|
||||
|
|
Loading…
Reference in New Issue