From 99bef2614cc430ea0ef0ca5e76975bb4dce24845 Mon Sep 17 00:00:00 2001 From: twMat Date: Sat, 20 Mar 2021 23:43:35 +0100 Subject: [PATCH] Update SelectWidget.tid (#5555) Added instrux for placeholder value. [Ref.](https://github.com/Jermolene/TiddlyWiki5/issues/5544) --- editions/tw5.com/tiddlers/widgets/SelectWidget.tid | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/widgets/SelectWidget.tid b/editions/tw5.com/tiddlers/widgets/SelectWidget.tid index 47c1117a6..8042b9d86 100644 --- a/editions/tw5.com/tiddlers/widgets/SelectWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/SelectWidget.tid @@ -53,6 +53,17 @@ 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: + +<$macrocall $name="wikitext-example-without-html" src="<$select tiddler="$:/SiteTitle" default="Choose a new site title"> + + + + +"/> + !! 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. @@ -117,4 +128,4 @@ This example uses the `multiple` keyword to specify that we should be able to se <$list filter='[list[$:/generated-list-demo-state!!testing]]'> <$view field='title' />
-"/> \ No newline at end of file +"/>