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