Name | Type | Default | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
animationShowDuration | Number | 350 | ||||||||||||
Sets or gets the duration of the show animation. Code example
Set the
Get the
|
||||||||||||||
animationHideDuration | Number | 250 | ||||||||||||
Sets or gets the duration of the hide animation. Code example
Set the
Get the
|
||||||||||||||
animationHideDelay | Number | 500 | ||||||||||||
Sets or gets the delay before the start of the hide animation. Code example
Set the
Get the
|
||||||||||||||
animationShowDelay | Number | 200 | ||||||||||||
Sets or gets the delay before the start of the show animation. Code example
Set the
Get the
Try it: animationShowDelay is set to 300
|
||||||||||||||
autoCloseInterval | Number | 10000 | ||||||||||||
Sets or gets the time interval after which all opened items will be closed. When you open a new sub menu, the interval is cleared. If you want to disable this automatic closing behavior of the jqxMenu, you need to set the autoCloseInterval property to 0. Code example
Set the
Get the
Try it: autoCloseInterval is set to 300
|
||||||||||||||
autoSizeMainItems | Boolean | true | ||||||||||||
Auto-Sizes the jqxMenu's main items when the menu's mode is 'horizontal'. Code example
Set the
Get the
|
||||||||||||||
autoCloseOnClick | Boolean | true | ||||||||||||
Automatically closes the opened popups after a click. Code example
Set the
Get the
Try it: autoCloseOnClick is set to false
|
||||||||||||||
autoOpenPopup | Boolean | true | ||||||||||||
Opens the Context Menu when the right-mouse button is pressed. When this property
is set to false, the Code example
Set the
Get the
Try it: autoOpenPopup is set to false
|
||||||||||||||
autoOpen | Boolean | true | ||||||||||||
Opens the top level menu items when the user hovers them. Code example
Set the
Get the
Try it: autoOpen is set to false
|
||||||||||||||
clickToOpen | Boolean | false | ||||||||||||
Opens an item after a click by the user. Code example
Set the
Get the
Try it: clickToOpen is set to true
|
||||||||||||||
disabled | Boolean | false | ||||||||||||
Enables or disables the jqxMenu. Code example
Set the
Get the
Try it: disabled is set to true
|
||||||||||||||
enableHover | Boolean | true | ||||||||||||
Enables or disables the hover state. Code example
Set the
Get the
Try it: enableHover is set to false
|
||||||||||||||
easing | String | easeInOutSine | ||||||||||||
Sets or gets the animation's easing to one of the JQuery's supported easings. Code example
Set the
Get the
Try it: easing is set to 'linear'
|
||||||||||||||
height | Number/String | null | ||||||||||||
Sets or gets the jqxMenu's height. Code example
Set the
Get the
Try it: height is set to 30
|
||||||||||||||
keyboardNavigation | Boolean | false | ||||||||||||
Enables or disables the jqxMenu's keyboard navigation. Code example
Set the
Get the
|
||||||||||||||
minimizeWidth | String | 'auto' | ||||||||||||
Sets or gets the jqxMenu's minimizeWidth. That width determines the minimum browser window's width when the Menu will switch from normal to minimized mode and the Menu's width is in percentages. Set it to null, if you want to disable that behavior. Note: jqxMenu automatically switches to minimized mode, when it is displayed on a touch device. By setting the property to null, you will disable that behavior, too. Code example
Set the
Get the
Try it: minimizeWidth is set to 450
|
||||||||||||||
mode | String | horizontal | ||||||||||||
Sets or gets the menu's display mode. Possible Values:
Code example
Set the
Get the
Try it: mode is set to 'vertical'
|
||||||||||||||
popupZIndex | Number | 20000 | ||||||||||||
Sets or gets the popup's z-index. Code example
Set the
Get the
Try it: popupZIndex is set to 99999
|
||||||||||||||
rtl | Boolean | false | ||||||||||||
Sets or getsa value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||||||||
source | Object | null | ||||||||||||
Specifies the jqxMenu's data source. Use this property to populate the jqxMenu. Each menu item may have following fields:Item Fields
Code examples
Initialize a jqxMenu with the
Try it: source is set to source
|
||||||||||||||
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'
|
||||||||||||||
width | Number/String | null | ||||||||||||
Sets or gets the jqxMenu's width. Code example
Set the
Get the
Try it: width is set to 450
|
||||||||||||||
Events |
||||||||||||||
closed | Event | |||||||||||||
This event is triggered when any of the jqxMenu Sub Menus is closed. Code example
Bind to the
|
||||||||||||||
itemclick | Event | |||||||||||||
This event is triggered when a menu item is clicked. Code example
Bind to the
|
||||||||||||||
initialized | Event | |||||||||||||
This event is triggered after the menu is initialized. Code example
Bind to the
|
||||||||||||||
shown | Event | |||||||||||||
This event is triggered when any of the jqxMenu Sub Menus is displayed. Code example
Bind to the
|
||||||||||||||
Methods |
||||||||||||||
closeItem | Method | |||||||||||||
Closes a menu item.
None Code example
Invoke the
Try it: closes an item in the jqxMenu
|
||||||||||||||
close | Method | |||||||||||||
Closes the menu (only in context menu mode).
None Code example
Invoke the
Try it: closes a sub menu in the jqxMenu
|
||||||||||||||
disable | Method | |||||||||||||
Disables or enables a menu item. The method has two parameters - HTML Element ID and a boolean value which determines whether to disable or enable the element.
None Code examples
Invoke the
Try it: disables a jqxMenu item.
|
||||||||||||||
destroy | Method | |||||||||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroys the jqxMenu
|
||||||||||||||
focus | Method | |||||||||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxMenu
|
||||||||||||||
minimize | Method | |||||||||||||
Minimizes the widget.
None Code examples
Invoke the
Try it: minimizes the jqxMenu
|
||||||||||||||
open | Method | |||||||||||||
Opens the menu(only in context menu mode).
None Code example
Invoke the
Try it: opens a sub menu in the jqxMenu
|
||||||||||||||
openItem | Method | |||||||||||||
Opens a menu item
None Code example
Invoke the
Try it: opens an item in the jqxMenu
|
||||||||||||||
restore | Method | |||||||||||||
Restores the widget from the "minimized" state.
None Code examples
Invoke the
Try it: restores the jqxMenu
|
||||||||||||||
setItemOpenDirection | Method | |||||||||||||
Sets the item's popup open direction
None Code example
Invoke the
|