Name | Type | Default | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
animationType | String | 'slide' | ||||||||||||
Sets or gets the animation type. Possible Values:
Code example
Set the
Get the
Try it: animationType is set to 'fade'
|
||||||||||||||
arrowPosition | String | 'right' | ||||||||||||
Sets or gets header's arrow position. Possible Values:
Code example
Set the
Get the
Try it: arrowPosition is set to 'left'
|
||||||||||||||
collapseAnimationDuration | Number | 400 | ||||||||||||
Sets or gets the collapsing animation duration. Code example
Set the
Get the
|
||||||||||||||
disabled | Boolean | false | ||||||||||||
Sets or gets whether the navigation bar is disabled. Code example
Set the
Get the
Try it: disabled is set to true
|
||||||||||||||
expandAnimationDuration | Number | 400 | ||||||||||||
Sets or gets the expanding animation duration. Code example
Set the
Get the
|
||||||||||||||
expandMode | String | 'singleFitHeight' | ||||||||||||
Sets or gets navigation bar's expand mode. Possible values ['single', 'singleFitHeight' 'multiple', 'toggle', 'none']. Possible Values:
Code example
Set the
Get the
Try it: expandMode is set to 'single'
|
||||||||||||||
expandedIndexes | Array | [] | ||||||||||||
Sets or gets the expanded item(s). If the property Code example
Set the
Get the
Try it: expandedIndexes is set to [0, 1]
|
||||||||||||||
height | Number/String | 'auto' | ||||||||||||
Sets or gets the navigationbar's height. Possible values - 'auto' or string like this 'Npx' where N is any Number or a numeric value in pixels. Code example
Set the
Get the
Try it: height is set to 200
|
||||||||||||||
initContent | function | null | ||||||||||||
Callback function called when an item's content needs to be initialized. Useful for initializing other widgets within the content of any of the items of jqxNavigationBar. The index argument shows which item is initialized. Code example
Set the
Get the
|
||||||||||||||
rtl | Boolean | false | ||||||||||||
Determines whether the right-to-left support is enabled. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||||||||
showArrow | Boolean | true | ||||||||||||
Sets or gets whether header's arrow is going to be shown. Code example
Set the
Get the
Try it: showArrow is set to false
|
||||||||||||||
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 'energyblue'
|
||||||||||||||
toggleMode | String | click | ||||||||||||
Sets or gets user interaction used for expanding or collapsing the content. Possible values ['click', 'dblclick', 'none']. Possible Values:
Code example
Set the
Get the
Try it: toggleMode is set to 'dblclick'
|
||||||||||||||
width | Number/String | 'auto' | ||||||||||||
Sets or gets the navigationbar's width. Possible values - 'auto' or string like this 'Npx' where N is any Number or a numeric value in pixels. Code example
Set the
Get the
Try it: width is set to 400
|
||||||||||||||
Events |
||||||||||||||
collapsingItem | Event | |||||||||||||
This event is triggered when a jqxNavigationBar item is going to be collapsed. Code example
Bind to the
|
||||||||||||||
collapsedItem | Event | |||||||||||||
This event is triggered when a jqxNavigationBar item is collapsed. Code example
Bind to the
|
||||||||||||||
expandingItem | Event | |||||||||||||
This event is triggered when a jqxNavigationBar item is going to be expanded. Code example
Bind to the
|
||||||||||||||
expandedItem | Event | |||||||||||||
This event is triggered when a jqxNavigationBar item is expanded. Code example
Bind to the
|
||||||||||||||
Methods |
||||||||||||||
add | Method | |||||||||||||
This method inserts an item at the bottom of the navigationbar. It has two parameters - header (the header of the new item) and content (the content of the new item).
None Code example
Invoke the
|
||||||||||||||
collapseAt | Method | |||||||||||||
Collapsing item with any index.
None Code example
Invoke the
|
||||||||||||||
disableAt | Method | |||||||||||||
Disabling item with any index.
None Code example
Invoke the
|
||||||||||||||
disable | Method | |||||||||||||
This method is disabling the navigation bar.
None Code example
Invoke the
Try it: disables the jqxNavigationBar.
|
||||||||||||||
destroy | Method | |||||||||||||
This method destroys the navigationbar.
None Code example
Invoke the
Try it: destroy the jqxNavigationBar.
|
||||||||||||||
expandAt | Method | |||||||||||||
Expanding item with any index.
None Code example
Invoke the
|
||||||||||||||
enableAt | Method | |||||||||||||
Enabling item with any index.
None Code example
Invoke the
|
||||||||||||||
enable | Method | |||||||||||||
This method is enabling the navigation bar.
None Code example
Invoke the
Try it: enables the jqxNavigationBar.
|
||||||||||||||
focus | Method | |||||||||||||
This method focuses on the navigationbar. When the widget is focused, keyboard navigation can be used. Here is a list of the keys, supported by jqxNavigationBar and their function:
None Code example
Invoke the
Try it: focuses the jqxNavigationBar.
|
||||||||||||||
getHeaderContentAt | Method | |||||||||||||
Getting header content of item with any index. Returns a string value.
None Code example
Invoke the
|
||||||||||||||
getContentAt | Method | |||||||||||||
Getting content of item with any index. Returns a string value.
None Code example
Invoke the
|
||||||||||||||
hideArrowAt | Method | |||||||||||||
Hiding the arrow of an item with specific index.
None Code example
Invoke the
|
||||||||||||||
invalidate | Method | |||||||||||||
This method refreshes the navigationbar.
None Code example
Invoke the
|
||||||||||||||
insert | Method | |||||||||||||
This method inserts an item at a specific index. It has three parameters - index, header (the header of the new item) and content (the content of the new item).
None Code example
Invoke the
|
||||||||||||||
refresh | Method | |||||||||||||
This method refreshes the navigationbar.
None Code example
Invoke the
Try it: refreshes the jqxNavigationBar.
|
||||||||||||||
render | Method | |||||||||||||
This method renders the navigationbar.
None Code example
Invoke the
Try it: renders the jqxNavigationBar.
|
||||||||||||||
remove | Method | |||||||||||||
This method removes an item at a specific index. The parameter (index) is optional and if it is not set, the method removes the last item.
None Code example
Invoke the
|
||||||||||||||
setContentAt | Method | |||||||||||||
Setting content to item with any index.
None Code example
Invoke the
|
||||||||||||||
setHeaderContentAt | Method | |||||||||||||
Setting header content to item with any index
None Code example
Invoke the
|
||||||||||||||
showArrowAt | Method | |||||||||||||
Showing the arrow of an item with specific index.
None Code example
Invoke the
|
||||||||||||||
update | Method | |||||||||||||
This method updates an item at a specific index. It has three parameters - index, header (the new header of the item) and content (the new content of the item).
None Code example
Invoke the
|
||||||||||||||
val | Method | |||||||||||||
Sets or gets the expanded item.
String Code example
Invoke the
// Get the expanded item's index using jQuery's val()
// Set the expanded item.
// Set the expanded item using jQuery's val().
|