created: 201310241419 modified: 201310300837 tags: widget title: SelectWidget ! Introduction The select widget displays an [[HTML select element|https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select]] containing a list of items defined by `` elements and binds the selected value to the text of a tiddler field or index. For example, this select widget displays a list of the tags in this wiki: <$macrocall $name="wikitext-example-without-html" src="<$select tiddler=<> default='widget'> <$list filter='[all[shadows+tiddlers]tags[]sort[title]]'> "/> The <$link to=<>>state tiddler currently contains <$edit-text tiddler=<> tag="input" default=""/>. See the text change as you switch entries in the select widget. Try changing the value of the state tiddler and see the select widget change. Notice how the select widget only displays an entry if there is a precise match with the tiddler text. ! Content and Attributes The content of the `<$select>` widget should be one or more HTML `