Vue NavBar - Items Selection

An end user can select NavBar items in two different modes: 'single' (by default) or 'multiple'. You can use the selectionMode property to change the mode.

If you need an item to be preselected, pass its index in the data source array to the selectedIndex property.

As an alternative, you can use the selectedItem (for "single" selectionMode) or selectedItems (for "multiple" selectionMode) properties. This approach is suitable if the NavBar items are specified using an array rather than the dxItem markup component.

See Also