1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Update SelectWidget.tid (#5556)

Placeholder value - Correction of previous attempt.
This commit is contained in:
twMat 2021-03-21 17:55:18 +01:00 committed by GitHub
parent 99bef2614c
commit 0beac47243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,10 +55,10 @@ This example sets the title of the current wiki [[$:/SiteTitle]] to one of a lis
!!! Simple List with Placeholder Value
To display a default value that is also disabled, effectively functioning as a placeholder, this form can be used:
To display a default value that is also disabled, effectively functioning as a placeholder, the following form can be used. Note that the targeted field must be empty, or not exist, for the placeholder to show in the widget:
<$macrocall $name="wikitext-example-without-html" src="<$select tiddler="$:/SiteTitle" default="Choose a new site title">
<option disabled>Choose a new site title</option>
<$macrocall $name="wikitext-example-without-html" src="<$select tiddler='New Tiddler' field='text' default='Choose a new text'>
<option disabled>Choose a new text</option>
<option>A Tale of Two Cities</option>
<option>A New Kind of Science</option>
<option>The Dice Man</option>