mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 06:44:50 +00:00
49 lines
889 B
Plaintext
49 lines
889 B
Plaintext
|
created: 20190205024953535
|
||
|
modified: 20190205025028737
|
||
|
tags:
|
||
|
title: Widget attributes demo II
|
||
|
type: text/vnd.tiddlywiki
|
||
|
|
||
|
<!-- The innerwiki doesn't refresh on its own when tiddlers on the outside change, so use the list widget to force a dependency -->
|
||
|
<$list name=refresh filter=[[hello-attribute-optimized.js]get[text]]>
|
||
|
<$innerwiki width="600" height="400" style="width:100%;">
|
||
|
<$data title="$:/DefaultTiddlers" text="[[hello world widget]]"/>
|
||
|
<$data $tiddler=hello-attribute-optimized.js/>
|
||
|
<$data title="hello world widget" text="""
|
||
|
```
|
||
|
<$hello/>
|
||
|
```
|
||
|
|
||
|
Renders as:
|
||
|
|
||
|
<$hello/>
|
||
|
|
||
|
---
|
||
|
|
||
|
```
|
||
|
<$hello message="pale blue dot"/>
|
||
|
```
|
||
|
|
||
|
Renders as:
|
||
|
|
||
|
<$hello message="pale blue dot"/>
|
||
|
|
||
|
---
|
||
|
|
||
|
<$edit-text focus=yes tiddler=test tag=input/>
|
||
|
|
||
|
```
|
||
|
<$hello message={{test!!text}}/>
|
||
|
```
|
||
|
|
||
|
Renders as:
|
||
|
|
||
|
<$hello message={{test!!text}}/>
|
||
|
|
||
|
"""/>
|
||
|
|
||
|
<$data title="test" text="Alice"/>
|
||
|
|
||
|
</$innerwiki>
|
||
|
</$list>
|