RangeWidget - where's the value displayed actually?

36 views
Skip to first unread message

Mat

unread,
Feb 9, 2020, 6:28:55 AM2/9/20
to TiddlyWiki
https://tiddlywiki.com/prerelease/#RangeWidget

...claims

defaultThe default value displayed if the field is missing or empty

Is this correct? I mean, exactly where is this value "displayed"? AFAICT it takes a transclusion of the field to "display" the value which means nothing shows if the field is "missing or empty". How would one access the default attribute value?

<:-)

Eric Shulman

unread,
Feb 9, 2020, 8:13:04 AM2/9/20
to TiddlyWiki
On Sunday, February 9, 2020 at 3:28:55 AM UTC-8, Mat wrote:
https://tiddlywiki.com/prerelease/#RangeWidget
...claims

defaultThe default value displayed if the field is missing or empty

Is this correct? I mean, exactly where is this value "displayed"?

The default value is "displayed" as **the position on the range control**.

Thus:
<$range tiddler="SomeTiddler" field="SomeField" min="0" max="500" default="250"/>
will show a control from 0 to 500 and, if SomeTiddler!!SomeField doesn't exist, will use a default value of 250.

-e




Mat

unread,
Feb 9, 2020, 9:19:33 AM2/9/20
to TiddlyWiki
Eric Shulman wrote:
The default value is "displayed" as **the position on the range control**.

Ahaaaa... Thanks!

<:-)
Reply all
Reply to author
Forward
0 new messages