mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +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
|
||||
created: 20131024141900000
|
||||
modified: 20230122210049893
|
||||
heading:
|
||||
modified: 20240627184331133
|
||||
tags: Widgets
|
||||
temp:
|
||||
title: EditTextWidget
|
||||
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"
|
||||
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…
Reference in New Issue
Block a user