Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

The TabWidget provides a elegant way to display multiple “pages“ of related content within the same DSL view and an alternative to page actions or buttons.

Screenshot 2024-10-21 at 10.57.26.png

Attributes

alignment: String - Determines the horizontal position of the tabs. Can be one of left, center, right

direction: String - Determines orientation of the tabs. Can be one of horizontal or vertical

stacked: Boolean - Used to display the icon for each tab above the label of the tab instead of before the label

activeTab: Number - Used to identify the current active tab

items: JSON Array - The actual tab items. Each item consists of id, icon and label

id: Number - The ID of the Tab

icon: String || Null - Icon name as determined from https://pictogrammers.com/library/mdi/

label: String - The tab label

A complete example of the JSON:

{
  "alignment": "left",
  "direction": "horizontal",
  "stacked": false,
  "activeTab": 1,
  "items": [
    {
      "id": 1,
      "label": "Tab 1",
      "icon": "home"
    },
    {
      "id": 2,
      "label": "Tab 2",
      "icon": null
    }
  ]
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.