Skip to content

Tabs

Really, tabs doesn’t exist. They are <notebook>s with <page>s.

<notebook>
<page name="tab1" string="Tab 1">
<label string="This is the content of tab 1" />
</page>
<page name="tab2" string="Tab 2">
<label string="This is the content of tab 2" />
</page>
</notebook>
This is the content of tab 2

Changing the position of the tabs

<notebook position="left">
<page name="tab1" string="Tab 1">
<label string="This is the content of tab 1" />
</page>
<page name="tab2" string="Tab 2">
<label string="This is the content of tab 2" />
</page>
</notebook>
This is the content of tab 2

Supported values for position are top, right, bottom, and left.

Adding icons to the tabs

<notebook>
<page name="tab1" string="Tab 1" icon="star">
<label string="This is the content of tab 1" />
</page>
<page name="tab2" string="Tab 2" icon="warning">
<label string="This is the content of tab 2" />
</page>
</notebook>
This is the content of tab 2

Showing a spinner inside a tab

v2.38.0

Is possible to show a spinner inside a tab while the content is loading.

<notebook>
<page name="tab1" string="Tab 1" loading="1">
<label string="This is the content of tab 1" />
</page>
<page name="tab2" string="Tab 2">
<label string="This is the content of tab 2" />
</page>
</notebook>
Loading...
This is the content of tab 2

API

Notebook

PropertyDescriptionTypeDefaultVersion
positionPosition of the tabstop | right | bottom | lefttop-

Page

PropertyDescriptionTypeDefaultVersion
stringTitle of the pagestring--
iconIcon of the page. See Icons.string--
loadingIf the page is loading to show a Spinnerboolean- v2.38.0