Update SelectWidget.tid (#5556)

Placeholder value - Correction of previous attempt.
tiddlywiki-com
twMat 2021-03-21 17:55:18 +01:00 zatwierdzone przez GitHub
rodzic 99bef2614c
commit 0beac47243
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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>