mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-31 07:06:19 +00:00
22 lines
603 B
Plaintext
22 lines
603 B
Plaintext
|
title: Widgets/DataAttributes/CheckboxWidget
|
||
|
description: Data Attributes for CheckboxWidget
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
<$checkbox tag="done" data-title={{Temp}} style.color={{{ [[Temp]get[color]] }}} onclick="clicked"> Is it done?</$checkbox>
|
||
|
+
|
||
|
title: Actions
|
||
|
|
||
|
<$action-setfield $tiddler="Temp" $field="text" $value="Title2" color="red"/>
|
||
|
+
|
||
|
title: Temp
|
||
|
color: black
|
||
|
|
||
|
Title1
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p><label class="tc-checkbox "><input data-title="Title2" type="checkbox" style="color:red;"><span>Is it done?</span></label></p>
|