mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 15:29:56 +00:00
27 lines
810 B
Plaintext
27 lines
810 B
Plaintext
|
title: Widgets/DataAttributes/DraggableWidget
|
||
|
description: Data Attributes for DraggableWidget
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
<$draggable tag="div" class="myclass" data-title="mytiddler" style.color="red" onclick="clicked">
|
||
|
my tiddler
|
||
|
</$draggable>
|
||
|
<$draggable tag="div" class="myclass" data-title={{Temp}} style.color={{{ [[Temp]get[color]] }}}>
|
||
|
hello
|
||
|
</$draggable>
|
||
|
+
|
||
|
title: Actions
|
||
|
|
||
|
<$action-setfield $tiddler="Temp" $field="text" $value="Title2" color="red"/>
|
||
|
+
|
||
|
title: Temp
|
||
|
color: black
|
||
|
|
||
|
Title1
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p><div class="myclass tc-draggable" data-title="mytiddler" draggable="true" style="color:red;">my tiddler</div><div class="myclass tc-draggable" data-title="Title2" draggable="true" style="color:red;">hello</div></p>
|