mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-09 06:16:06 +00:00
@@ -8,11 +8,11 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
\define toc-heading(caption,body)
|
||||
<$reveal type="nomatch" state=<<qualify "$:/state/toc/$caption$">> text="show">
|
||||
<$button set=<<qualify "$:/state/toc/$caption$">> setTo="show" class="btn-invisible">{{$:/core/images/right-arrow}} $caption$
|
||||
<$button set=<<qualify "$:/state/toc/$caption$">> setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}} $caption$
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" state=<<qualify "$:/state/toc/$caption$">> text="show">
|
||||
<$button set=<<qualify "$:/state/toc/$caption$">> setTo="hide" class="btn-invisible">{{$:/core/images/down-arrow}} $caption$
|
||||
<$button set=<<qualify "$:/state/toc/$caption$">> setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}} $caption$
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" state=<<qualify "$:/state/toc/$caption$">> text="show" retain="yes" animate="yes">
|
||||
|
@@ -16,7 +16,7 @@ Click this link to get started: HelloThere
|
||||
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
||||
<div>
|
||||
|
||||
! <$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
|
||||
<$transclude/>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@ Click this link to get started: HelloThere
|
||||
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
||||
<div>
|
||||
|
||||
! <$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
||||
|
||||
<$transclude/>
|
||||
|
||||
|
@@ -13,7 +13,7 @@ The history list also maintains the field ''current-tiddler'' that contains the
|
||||
```
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
|
||||
<$button message="tw-close-tiddler" class="btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
|
||||
</$list>
|
||||
```
|
||||
@@ -22,6 +22,6 @@ Which renders the same as the "Open" sidebar tab, with the addition of a tick ag
|
||||
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
|
||||
<$button message="tw-close-tiddler" class="btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$reveal></$link>
|
||||
|
||||
</$list>
|
||||
|
@@ -28,7 +28,7 @@ Note how this approach makes the ''open'' tab in the sidebar very easy to implem
|
||||
|
||||
```
|
||||
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
|
||||
<$button message="tw-close-tiddler" class="btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
<$button message="tw-close-tiddler" class="tc-btn-invisible btn-mini">×</$button> <$link to={{!!title}}><$view field="title"/></$link>
|
||||
</$list>
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user