mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Update SelectWidget.tid (#5555)
Added instrux for placeholder value. [Ref.](https://github.com/Jermolene/TiddlyWiki5/issues/5544)
This commit is contained in:
parent
743d9c56c0
commit
99bef2614c
@ -53,6 +53,17 @@ This example sets the title of the current wiki [[$:/SiteTitle]] to one of a lis
|
||||
<option>The Dice Man</option>
|
||||
</$select>"/>
|
||||
|
||||
!!! Simple List with Placeholder Value
|
||||
|
||||
To display a default value that is also disabled, effectively functioning as a placeholder, this form can be used:
|
||||
|
||||
<$macrocall $name="wikitext-example-without-html" src="<$select tiddler="$:/SiteTitle" default="Choose a new site title">
|
||||
<option disabled>Choose a new site title</option>
|
||||
<option>A Tale of Two Cities</option>
|
||||
<option>A New Kind of Science</option>
|
||||
<option>The Dice Man</option>
|
||||
</$select>"/>
|
||||
|
||||
!! Value lists
|
||||
|
||||
In this example the `value` attribute has been used to specify the text that should be used as the value of the entry instead of the display text.
|
||||
|
Loading…
Reference in New Issue
Block a user