Navigation Bar | |
Type | widget |
Dictionary | widget.navbar |
Library | Navigation Bar |
Associations | com.livecode.widget.navbar |
Summary | The navigation bar widget is intended for use in mobile apps for switching between cards, although there are many other possible uses. The widget displays a row of navigation items. Each of these has a name, which identifies it. Depending on the selected itemStyle, the items may display a label, icon, or both. All of the navigation item data is available as a single array via the itemArray property. At any time, zero or one of the navigation items may be highlighted. This is useful, for example, for indicating the current card. When the user clicks one of the navigation items, the widget sends a hiliteChanged message. |
Related | Property: hilitedItemName, itemArray, itemIcons, itemLabels, itemNames, itemStyle Message: hiliteChanged |
Description | The navigation bar widget is intended for use in mobile apps for switching between cards, although there are many other possible uses. The widget displays a row of navigation items. Each of these has a name, which identifies it. Depending on the selected itemStyle, the items may display a label, icon, or both. All of the navigation item data is available as a single array via the itemArray property. At any time, zero or one of the navigation items may be highlighted. This is useful, for example, for indicating the current card. When the user clicks one of the navigation items, the widget sends a hiliteChanged message. |
Type | Name | Summary | Syntax |
---|---|---|---|
message | hiliteChanged | Sent when a navigation item is selected | hiliteChanged |
property | backColor | The color of the navigation bar background | get the backColor of <widget> set the backColor of <widget> to <color> |
- - - | borderColor | The color of the navigation bar border | get the borderColor of <widget> set the borderColor of <widget> to <color> |
- - - | desiredHeight | The optimal height for the widget | get the desiredHeight of <widget> |
- - - | editMode | Whether the widget is in edit mode | get the editMode of <widget> set the editMode of <widget> to {true | false} |
- - - | foreColor | The color of the navigation items that are not highlighted | get the foreColor of <widget> set the foreColor of <widget> to <color> |
- - - | hiliteColor | The color of the highlighted navigation item | get the hiliteColor of <widget> set the hiliteColor of <widget> to <color> |
- - - | hilitedItem | The index of the highlighted navigation item | get the hilitedItem of <widget> set the hilitedItem of <widget> to <itemNumber> |
- - - | hilitedItemIcons | The highlighted-state icons for the navigation icons | get the hilitedItemIcons of <widget> set the hilitedItemIcons of <widget> to <icons> |
- - - | hilitedItemName | The name of the highlighted navigation item | get the hilitedItemName of <widget> set the hilitedItemName of <widget> to <pName> |
- - - | itemArray | The full navigation item data. | get the itemArray of <widget> set the itemArray of <widget> to <array> |
- - - | itemIcons | The normal-state icons for the navigation items | get the itemIcons of <widget> set the itemIcons of <widget> to <icons> |
- - - | itemLabels | The labels of the navigation items | get the itemLabels of <widget> set the itemLabels of <widget> to <labels> |
- - - | itemNames | The names of the navigation items | get the itemNames of <widget> set the itemNames of <widget> to <names> |
- - - | itemStyle | The style with which navigation items are displayed | get the itemStyle of <widget> set the itemStyle of <widget> to <style> |
- - - | opaque | Whether the background of the widget is filled | get the opaque of <widget> set the opaque of <widget> to {true | false} |
- - - | showBorder | Whether there is a dividing line at the top of the widget | get the showBorder of <widget> set the showBorder of <widget> to {true | false} |
widget | Navigation Bar | The navigation bar widget is intended for use in mobile apps for switching between cards, although there are many other possible uses. The widget displays a row of navigation items. Each of these has a name, which identifies it. Depending on the selected itemStyle, the items may display a label, icon, or both. All of the navigation item data is available as a single array via the itemArray property. At any time, zero or one of the navigation items may be highlighted. This is useful, for example, for indicating the current card. When the user clicks one of the navigation items, the widget sends a hiliteChanged message. | get the showBorder of <widget> set the showBorder of <widget> to {true | false} |