mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Docs: Add InputActions example to EditTextWidget (#8306)
This commit is contained in:
parent
1937789ee2
commit
7beaddb293
@ -1,7 +1,9 @@
|
|||||||
caption: edit-text
|
caption: edit-text
|
||||||
created: 20131024141900000
|
created: 20131024141900000
|
||||||
modified: 20230122210049893
|
heading:
|
||||||
|
modified: 20240627184331133
|
||||||
tags: Widgets
|
tags: Widgets
|
||||||
|
temp:
|
||||||
title: EditTextWidget
|
title: EditTextWidget
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
@ -66,3 +68,18 @@ Provide a dated heading for this example where only the placeholder (but not the
|
|||||||
<$macrocall $name=".example" n="3"
|
<$macrocall $name=".example" n="3"
|
||||||
eg="""<$edit-text tiddler=<<currentTiddler>> field="heading" size="25" focus="yes" focusSelectFromEnd="13" default={{{ [[Heading Text (]] [<now YYYY-0MM-0DD>] [[)]] +[join[]] }}} />
|
eg="""<$edit-text tiddler=<<currentTiddler>> field="heading" size="25" focus="yes" focusSelectFromEnd="13" default={{{ [[Heading Text (]] [<now YYYY-0MM-0DD>] [[)]] +[join[]] }}} />
|
||||||
"""/>
|
"""/>
|
||||||
|
|
||||||
|
!!! Input Actions, with class attribute
|
||||||
|
|
||||||
|
<$macrocall $name=".example" n="4"
|
||||||
|
eg="""\procedure onInput()
|
||||||
|
<%if [get[temp]match[$:/]] %>
|
||||||
|
<$action-confirm $message="Yes, this is how system tiddler names begin!"/>
|
||||||
|
<% endif %>
|
||||||
|
\end
|
||||||
|
|
||||||
|
Type a new tiddler name, starting with the system prefix `$:/`: <$edit-text inputActions=<<onInput>> field="temp" class="tc-edit-texteditor"/>
|
||||||
|
|
||||||
|
"""/>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user