mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 12:59:56 +00:00
Move list-join example onto single line (#7877)
It's a little less readable this way, but avoids the whitespace issue.
This commit is contained in:
parent
5578fa5f94
commit
4e06c31022
@ -62,18 +62,13 @@ Note that the <<.attr "emptyMessage">> and <<.attr "template">> attributes take
|
|||||||
You can replace it with:
|
You can replace it with:
|
||||||
|
|
||||||
```
|
```
|
||||||
<$list filter=<<filter>> variable="item" join=", ">
|
<$list filter=<<filter>> variable="item" join=", "><$text text=<<item>>/></$list>
|
||||||
<$text text=<<item>>/>
|
|
||||||
</$list>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If the joiner text that you need is long and awkward to write in an attribute, you can use the new `<$list-join>` widget. Like `<$list-template>` and `<$list-empty>`, it must be an immediate child of the <<.wid "ListWidget">>:
|
If the joiner text that you need is long and awkward to write in an attribute, you can use the new `<$list-join>` widget. Like `<$list-template>` and `<$list-empty>`, it must be an immediate child of the <<.wid "ListWidget">>:
|
||||||
|
|
||||||
```
|
```
|
||||||
<$list filter=<<filter>> variable="item">
|
<$list filter=<<filter>> variable="item"><$text text=<<item>>/><$list-join>, and <em>also</em> let's not forget </$list-join></$list>
|
||||||
<$text text=<<item>>/>
|
|
||||||
<$list-join>, and <em>also</em> let's not forget </$list-join>
|
|
||||||
</$list>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
!! jsonset operator
|
!! jsonset operator
|
||||||
|
Loading…
Reference in New Issue
Block a user