diff --git a/editions/tw5.com/tiddlers/widgets/RangeWidget.tid b/editions/tw5.com/tiddlers/widgets/RangeWidget.tid index 461fb40f4..d7c492559 100644 --- a/editions/tw5.com/tiddlers/widgets/RangeWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/RangeWidget.tid @@ -1,8 +1,9 @@ caption: range created: 20171102134825376 -modified: 20171102134928964 +modified: 20180425132848231 tags: Widgets title: RangeWidget +type: text/vnd.tiddlywiki ! Introduction @@ -20,3 +21,16 @@ The content of the `<$range>` widget is ignored. |increment |The minimum amount by which a value may be changed. Defaults to 1.| |default |The default value displayed if the field is missing or empty.| |class |CSS classes to be assigned to the label around the radio button | + +! Examples + +!! Range -1 to 10 + +<$macrocall $name='wikitext-example-without-html' +src="""<$range tiddler="$:/_RangeDemo/1" min="-1" max="10" default="1" increment="1"/> {{$:/_RangeDemo/1}}"""/> + +!! Range 0 to 1 + +<$macrocall $name='wikitext-example-without-html' +src="""<$range tiddler="$:/_RangeDemo/2" min="0" max="1" default=".01" increment=".01"/> {{$:/_RangeDemo/2}}"""/> +