Skip to main content

Nav Bar

The Nav Bar Control is a navigational tool that provides users with a set of menu items. Each menu item in the control is equipped with trigger action functionality, allowing users to perform specific actions such as executing queries or navigating to other pages or screens.

Nav Bar
Nav Bar

The control is designed to be mobile responsive, featuring a burger menu icon. When the page layout switches to a mobile view, the entire navbar transforms into a block format with the burger menu item. Upon clicking the burger menu, all the menu items are displayed for easy navigation.

Responsive Nav Bar
Responsive Nav Bar

Binding Data Options

Nav Bar control accepts array of nested objects in JSON format to display data. There are different ways in which you can bind data to the Nav Bar control.

Static Data Option

To display static options in the Nav Bar control, you can use the Bind Data option. The Bind Data option must be specified as an array of objects. For example:

[
{
"label": "Home",
"value": "home",
"icon": "icons icon-home",
"isActive": "true"
},
{
"label": "Products",
"icon": "icons icon-plus",
"options": [
{
"label": "UI Builder",
"value": "builder",
"description": "Interface design",
"color": "pink",
"isActive": true,
"image": ""
}
]
},
{
"label": "Categories",
"icon": "icons icon-grid",
"image": ""
}
]

Different Variations

  • Simple Nav bar
  • Icon Nav Bar
  • Image Nav Bar
Responsive Nav Bar

Properties

PropertyDescription
Menu propertiesAllows customization of menu items in the Nav Bar control, including coloring, styling, positioning, and font attributes.
Burger Menu AlignmentFixes the position of the burger menu in mobile responsive view.
Open dropdown onSets the action (Hover or Click) on which the dropdown is visible.
Item Max heightSets the maximum height of each dropdown menu.
Menu alignmentAligns menu items within the Nav Bar control.
Selected ItemSets the background and font color of the active menu item in the Nav Bar control or menu data with isActive set as true.
Dropdown colorSets the background and font color of submenu items in the Nav Bar control or menu items under the options property.

Control Outputs

The outputs from the Nav Bar control, represented by the placeholder {{navbar}}, can be referenced in other controls, data queries, or JavaScript functions using the control's unique name.

OutputDescription
navbarRepresents the selected value from the Nav Bar control, indicating the user's chosen menu item.

Events

PropertyDescription
value_selectOccurs when there is a change in the value of the respective control, typically triggered by selecting another option or inputting a new value.