Name | Type | Default | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
animationType | String | 'fade' | |||||||||||||||
Sets or gets the animation type. Possible values:"fade" "slide" "none" Code examples
Set the
Get the
Try it: animationType
is set to 'slide'
|
|||||||||||||||||
animationDelay | Number/String | 400 | |||||||||||||||
Sets or gets the duration of the ribbon animation. Code examples
Set the
Get the
Try it: animationDelay
is set to 800
|
|||||||||||||||||
disabled | Boolean | false | |||||||||||||||
Enables/disables the ribbon. Code examples
Set the
Get the
Try it: disabled
is set to true
|
|||||||||||||||||
height | Number/String | 100 | |||||||||||||||
Sets or gets the ribbon's height. Code examples
Set the
Get the
Try it: height
is set to 100
|
|||||||||||||||||
initContent | Function | null | |||||||||||||||
Initializes the content of jqxRibbon. Useful for initializing other widgets. Code examples
Set the
Get the
|
|||||||||||||||||
mode | String | 'default' | |||||||||||||||
Sets or gets the ribbon's display mode. Possible values:"default" - the ribbon's content is included in its height. "popup" - the ribbon's content is not included in its height and is positioned absolutely. It overlaps elements underneath it. Code examples
Set the
Get the
Try it: mode
is set to 'popup'
|
|||||||||||||||||
popupCloseMode | String | 'click' | |||||||||||||||
Sets or gets the way to close selected content sections when the Possible values:"click" "mouseLeave" "none" Code examples
Set the
Get the
|
|||||||||||||||||
position | String | 'top' | |||||||||||||||
Sets or gets whether the ribbon's header is positioned at the top, bottom, left or right of the content. Possible values:"top" "bottom" "left" "right" Code examples
Set the
Get the
Try it: position
is set to "left"
|
|||||||||||||||||
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 true
|
|||||||||||||||||
selectedIndex | Number | 0 | |||||||||||||||
Sets or gets the selected index (tab). Code examples
Set the
Get the
Try it: selectedIndex
is set to 2
|
|||||||||||||||||
selectionMode | String | 'click' | |||||||||||||||
Sets or gets the selection mode. Possible values:"click" "hover" "none" Code examples
Set the
Get the
Try it: selectionMode
is set to 'hover'
|
|||||||||||||||||
scrollPosition | String | 'both' | |||||||||||||||
Sets or gets the position of the scrollbar buttons. Possible values:"both" "near" "far" Code examples
Set the
Get the
Try it: scrollPosition
is set to 'near'
|
|||||||||||||||||
scrollStep | Number | 10 | |||||||||||||||
Sets or gets the scroll step. Code examples
Set the
Get the
Try it: scrollStep
is set to 20
|
|||||||||||||||||
scrollDelay | Number | 50 | |||||||||||||||
Sets or gets the scroll delay. Code examples
Set the
Get the
Try it: scrollDelay
is set to 100
|
|||||||||||||||||
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 ribbon's width. Code examples
Set the
Get the
Try it: width
is set to 500
|
|||||||||||||||||
Events |
|||||||||||||||||
change | Event | ||||||||||||||||
This event is triggered when the user selects or unselects an item. Code examples
Bind to the
|
|||||||||||||||||
reorder | Event | ||||||||||||||||
This event is triggered when the user reorders the jqxRibbon items with the mouse. Code examples
Bind to the
|
|||||||||||||||||
select | Event | ||||||||||||||||
This event is triggered when the user selects an item. Code examples
Bind to the
|
|||||||||||||||||
unselect | Event | ||||||||||||||||
This event is triggered when the user unselects an item. Code examples
Bind to the
|
|||||||||||||||||
Methods |
|||||||||||||||||
addAt | Method | ||||||||||||||||
Adds a new item by index. List of parameters:
None Code examples
Invoke the
Try it: adds
a new item in the jqxRibbon
|
|||||||||||||||||
clearSelection | Method | ||||||||||||||||
Unselects the selected item and collapses its content.
None Code examples
Invoke the
|
|||||||||||||||||
disableAt | Method | ||||||||||||||||
Disables an item by index. Index is a number.
None Code examples
Invoke the // @param index - Number
|
|||||||||||||||||
destroy | Method | ||||||||||||||||
Destroys the jqxRibbon widget.
None Code examples
Invoke the
Try it: destroys
the jqxRibbon.
|
|||||||||||||||||
enableAt | Method | ||||||||||||||||
Enables a disabled item by index. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: enables
an item in the jqxRibbon
|
|||||||||||||||||
hideAt | Method | ||||||||||||||||
Hides an item by index. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: hides
an item in the jqxRibbon
|
|||||||||||||||||
removeAt | Method | ||||||||||||||||
Removes an item from the ribbon. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: removes
an item in the jqxRibbon
|
|||||||||||||||||
render | Method | ||||||||||||||||
Renders the jqxRibbon widget.
None Code examples
Invoke the
Try it: renders
the jqxRibbon
|
|||||||||||||||||
refresh | Method | ||||||||||||||||
Refreshes the jqxRibbon widget.
None Code examples
Invoke the
Try it: refreshes
the jqxRibbon
|
|||||||||||||||||
selectAt | Method | ||||||||||||||||
Selects the item with indicated index. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: selects
an item in the jqxRibbon
|
|||||||||||||||||
showAt | Method | ||||||||||||||||
Shows an item by index. Index is a number.
None Code examples
Invoke the // @param index - Number
Try it: shows
item in the jqxRibbon
|
|||||||||||||||||
setPopupLayout | Method | ||||||||||||||||
Sets the layout of an item's content if mode is set to "popup". List of parameters:
None Code examples
Invoke the
|
|||||||||||||||||
updateAt | Method | ||||||||||||||||
Updates an item. Note: after an item has been updated with updateAt, initContent will be called again for that item (if set). List of parameters:
None Code examples
Invoke the
Try it: updates
an item in the jqxRibbon
|
|||||||||||||||||
val | Method | ||||||||||||||||
Sets or gets the selected index. Index is a number.
String Code examples
Invoke the
//Get the selected index.
//Get the index using jQuery's val()
//Set the selected index.
//Set index using jQuery's val().
|