Element: Tab Menu

This element is a tab menu. It can contain multiple tabs each with their own collection of elements.

Each tab contains their own elements. To edit a specific tab, double-click the tab you want to change or change the selectedTab property using the property inspector. Then add elements to it by dragging and dropping them on top of the tab.

To change a tab name, select the tab using the selectedTab property and change the tabName property. That property always display the name of the selected tab.

Sample Tab Menu

Events

Tab menus have a mouseUp event that can be configured using low-code. This event is triggered when the user changes the selected tab.

Properties

Size Section

This section is used to configure the tab-menu size and position.

Property Description
top The value in pixels representing how far the element is from the top of the window.
left The value in pixels representing how distant element is from the left side of the window.
width The value in pixels representing the distance between the left side of the element and its right side.
height The value in pixels representing the distance between the bottom side of the element and its top side.

Geometry Section

Use the properties in this section to configure the responsive design behaviors for the element.

Property Description
lockAspectRatio Locks the aspect ratio of the element.
responsiveX how the element resizes responding to screen changes in the X axis.
responsiveY how the element resizes responding to screen changes in the Y axis.
allowUnderNotch Stretch to fill notch

Text Section

The properties in this section are used together with those in the appearance section to configure how the element is displayed on the screen. This section deals with the properties related to text used by the tab-menu.

Property Description
textFace The font used in the element’s text.
textSize The text size used in the element’s text.
textStyle The style used in the element’s text. It can be bold, italic, underlined, and strikethrough.
textAlign The text alignment used for the element’s text. It can be aligned to the left, right, or center.

Appearance Section

This section is used to configure how the tab-menu looks.

Property Description
headerTextColor the color used by the header text.
backgroundColor The color used for the element’s background.
headerColor the color used by the header background.
blendLevel How transparent the element is.
activeTabColor the color used to hilite which tab is selected.

Element Section

This section is contains properties that are specific to elements of type tab-menu.

Property Description
name The name of the element. Displayed in the project browser.
numberOfTabs how many tabs the tab menu element contains.
selectedTab which of tabs is the active tab.
tabName the name of the selected tab.

This chapter was last updated on Fri 13 Dec 2024 12:14:28 GMT