mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Docs: add RangeWidget examples
This commit is contained in:
parent
c397004cfb
commit
3e707f6a51
@ -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}}"""/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user