Back to Serenity

TabWidget

Base/usr/share/man/man5/GML/Widget/TabWidget.md

latest1.7 KB
Original Source

Name

GML Tab Widget

Description

Defines a GUI tab widget.

Synopsis

@GUI::TabWidget

Examples

gml
@GUI::TabWidget {
  uniform_tabs: true

  @GUI::Widget {
    title: "First tab"
  }
  @GUI::Widget {
    title: "Second tab"
  }
}

Registered Properties

PropertyTypePossible valuesDescription
container_marginsmarginsMargins for the tab content
reorder_allowedbooltrue or falseAllow changing the order of the tabs
show_close_buttonsbooltrue or falseShow a close button on each tab
show_tab_barbooltrue or falseWhether to display the tabs
text_alignmenttext_alignmentCenter, CenterLeft, CenterRight, TopLeft, TopRight, BottomLeft, BottomRightSet the alignment of tab text
tab_positiontab_positionTop, Bottom, Left, RightSet the tab position
uniform_tabsbooltrue or falseGive all tabs the same width