Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
columns | Array | [] | ||||||
Defines the layout of the widget's elements. Each Array item should be a Percentage Value and the total should be "100%". Code examples
Set the
Get the
|
||||||||
disabled | Boolean | false | ||||||
Enables/disables the navbar. Code examples
Set the
Get the
Try it: disabled is set to false
|
||||||||
height | Number/String | null | ||||||
Sets or gets the NavBar's height. Code examples
Set the
Get the
Try it: height is set to 40
|
||||||||
minimized | Boolean | false | ||||||
Defines whether the NavBar is minimized. Code examples
Set the
Get the
Try it: minimized is set to true
|
||||||||
minimizeButtonPosition | String | 'left' | ||||||
Defines the position of the Toggle Button in the minimized state. Code examples
Set the
Get the
|
||||||||
minimizedHeight | Number | 30 | ||||||
Defines the NavBar's height in minimized state. Code examples
Set the
Get the
Try it: minimizedHeight is set to 40
|
||||||||
minimizedTitle | String/HTML Element | "" | ||||||
Defines the NavBar's Title in minimized state. Code examples
Set the
Get the
|
||||||||
orientation | String | "horizontal" | ||||||
Defines the NavBar's orientation. Possible values: "horizontal", "vertical". Code examples
Set the
Get the
|
||||||||
popupAnimationDelay | Number | 250 | ||||||
Defines the animation speed of the NavBar's Popup in minimized state. Code examples
Set the
Get the
|
||||||||
rtl | Boolean | false | ||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code examples
Set the
Get the
Try it: rtl is set to false
|
||||||||
selection | Boolean | true | ||||||
Sets or gets whether the items can be selected. Code examples
Set the
Get the
Try it: selection is set to false
|
||||||||
selectedItem | Number | 0 | ||||||
Sets or gets the selected item. The property is taken into account when Code examples
Set the
Get the
Try it: selectedItem is set to 1
|
||||||||
theme | String | '' | ||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme
is set to 'fresh'
|
||||||||
width | Number/String | '100%' | ||||||
Sets or gets the NavBar's width. Code examples
Set the
Get the
Try it: width is set to '90%'
|
||||||||
Events |
||||||||
change | Event | |||||||
This event is triggered when the user selects an item. Code examples
Bind to the
|
||||||||
Methods |
||||||||
close | Method | |||||||
When NavBar is minimized, closes the popup.
None Code examples
Invoke the
|
||||||||
destroy | Method | |||||||
Destroys the jqxNavBar widget.
None Code examples
Invoke the
Try it: destroys the jqxNavBar.
|
||||||||
getSelectedIndex | Method | |||||||
Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned.
Number Code examples
Invoke the // @param Number
|
||||||||
open | Method | |||||||
When NavBar is minimized, opens the popup.
None Code examples
Invoke the
|
||||||||
selectAt | Method | |||||||
Selects the item with indicated index. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: selects item in the jqxNavBar
|