The tabs control works like a grid except that it can have several tab pages. Each tab page can have a title and is a grid control, so you can add rows directly.
<layout>
<tabs>
<tab text="Page 1">
<row>
<button />
</row>
</tab>
<tab text="Page 2">
<row>
<button />
</row>
</tab>
<tab text="Page 3">
<row>
<button />
</row>
</tab>
</tabs>
</layout>
Set the ID for this control so that it can be updated later. See layout library.
<tabs id="my_toggle">
...
</tabs>
Set the visibility state using visible
or invisible
or gone
.
<tabs visibility="gone">
...
</tabs>
Set the title of a tab page.
<tabs>
<tab text="foo">
...
</tab>
</tabs>
Set active tab number (zero-based).
<tabs index="1">
<tab>...</tab>
<tab>...</tab>
<tab>...</tab>
</tabs>
See the styling page for more details.
Occurs when the active tab page changes.
<tabs onchange="update">
...
</tabs>
actions.update = function (index)
...
end