mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Update docs for tabs macro (#5722)
This commit is contained in:
parent
c8528fd1f7
commit
2f31eab8f4
@ -1,10 +1,9 @@
|
|||||||
caption: tabs
|
caption: tabs
|
||||||
created: 20131228162203521
|
created: 20131228162203521
|
||||||
modified: 20180408084453861
|
modified: 20210525204556911
|
||||||
tags: Macros [[Core Macros]]
|
tags: Macros [[Core Macros]]
|
||||||
title: tabs Macro
|
title: tabs Macro
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
The <<.def tabs>> [[macro|Macros]] presents a [[selection of tiddlers|Title Selection]] as a set of tabs that the user can switch between.
|
The <<.def tabs>> [[macro|Macros]] presents a [[selection of tiddlers|Title Selection]] as a set of tabs that the user can switch between.
|
||||||
|
|
||||||
The tabs display the <<.field caption>> field of a tiddler if it has one, or the tiddler's title otherwise. If specified, the tabs display the <<.field tooltip>> field of a tiddler as the respective button tooltip.
|
The tabs display the <<.field caption>> field of a tiddler if it has one, or the tiddler's title otherwise. If specified, the tabs display the <<.field tooltip>> field of a tiddler as the respective button tooltip.
|
||||||
@ -28,7 +27,7 @@ By default the tabs are arranged horizontally above the content. To get vertical
|
|||||||
;retain
|
;retain
|
||||||
: Optionally, "yes" specifies that the content of the tabs should be retained when switching to another tab, avoiding re-rendering it (this can be useful to avoid video or audio sources unexpectedly resetting)
|
: Optionally, "yes" specifies that the content of the tabs should be retained when switching to another tab, avoiding re-rendering it (this can be useful to avoid video or audio sources unexpectedly resetting)
|
||||||
;actions
|
;actions
|
||||||
: Optionally, actions can be specified that are triggered when changing a tab
|
: Optionally, actions can be specified that are triggered when changing a tab. Within the actions, the title of the selected tab is available in the <<.var currentTab>> variable and the `currentTiddler` variable from outside the tabs macro is available in the <<.var save-currentTiddler>>
|
||||||
;explicitState
|
;explicitState
|
||||||
: Optionally, an explicit state title can be specified. It will be preferred over the internally computed (qualified) state title
|
: Optionally, an explicit state title can be specified. It will be preferred over the internally computed (qualified) state title
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user