1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-28 12:29:56 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/macros/TabsMacro.tid

28 lines
960 B
Plaintext
Raw Normal View History

2013-12-28 17:57:11 +00:00
created: 20131228162203521
2014-02-26 08:27:40 +00:00
modified: 20140225223527667
2013-11-21 17:32:24 +00:00
tags: macros
2013-12-28 17:57:11 +00:00
title: TabsMacro
type: text/vnd.tiddlywiki
2013-11-21 17:32:24 +00:00
2014-02-26 08:27:40 +00:00
The tabs macro displays a list of tiddlers as a tab control. The user can switch between tabs by clicking on them. The tabs are labelled with the title of the corresponding tiddler, unless there is a `caption` field present in which case it is used instead.
2013-11-21 17:32:24 +00:00
! Parameters
|!Position |!Name |!Description |!Default |
|1st |tabsList |Filter giving the tiddlers to be displayed | |
|2nd |default |Name of the tiddler containing the default tab | |
2014-02-26 08:27:40 +00:00
|3rd |state |String to distinguish multiple tabs within the same tiddler (use of the system tiddler prefix is recommended) |''$:/state/tab'' |
2013-11-21 17:32:24 +00:00
! Examples
Here is an example of the tabs macro:
2013-12-28 17:57:11 +00:00
```
2014-02-26 08:27:40 +00:00
<<tabs "Docs WikiText Features RoadMap" "WikiText" "$:/state/tab1">>
2013-12-28 17:57:11 +00:00
```
2014-02-26 08:27:40 +00:00
<<tabs "Docs WikiText Features RoadMap" "WikiText" "$:/state/tab1">>
2013-11-21 17:32:24 +00:00
2014-02-26 08:27:40 +00:00
<<tabs "[tag[tips]]" "GoogleChromeTips" "$:/state/tab1">>
2013-11-21 17:32:24 +00:00