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 | 'left' | ||||||
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 expander is disabled. Code example
Set the
Get the
Try it: disabled is set to true
|
||||||||
expanded | Boolean | true | ||||||
Sets or gets expander's state (collapsed or expanded). Code example
Set the
Get the
Try it: expanded is set to false
|
||||||||
expandAnimationDuration | Number | 400 | ||||||
Sets or gets the expanding animation duration. Code example
Set the
Get the
|
||||||||
height | Number/String | 'auto' | ||||||
Sets or gets expander'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 100
|
||||||||
headerPosition | String | 'top' | ||||||
Sets or gets header's position. Possible Values:
Code example
Set the
Get the
|
||||||||
initContent | function | null | ||||||
Callback function called when the item's content needs to be initialized. Useful for initializing other widgets within the content of jqxExpander. Code example
Set the
Get the
Try it: initContent is set to
|
||||||||
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:
Code example
Set the
Get the
Try it: toggleMode is set to 'dblclick'
|
||||||||
width | Number/String | 'auto' | ||||||
Sets or gets expander'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 200
|
||||||||
Events |
||||||||
collapsing | Event | |||||||
This event is triggered when the jqxExpander is going to be collapsed. Code example
Bind to the
|
||||||||
collapsed | Event | |||||||
This event is triggered when the jqxExpander is collapsed. Code example
Bind to the
|
||||||||
expanding | Event | |||||||
This event is triggered when the jqxExpander is going to be expanded. Code example
Bind to the expanding
|
||||||||
expanded | Event | |||||||
This event is triggered when the jqxExpander is expanded. Code example
Bind to the
|
||||||||
Methods |
||||||||
collapse | Method | |||||||
Method which is collapsing the expander.
None Code example
Invoke the
Try it: collapse the jqxExpander
|
||||||||
disable | Method | |||||||
This method is disabling the expander.
None Code example
Invoke the
Try it: disables the jqxExpander
|
||||||||
destroy | Method | |||||||
This method destroys the expander.
None Code example
Invoke the
Try it: destroys the jqxExpander
|
||||||||
enable | Method | |||||||
This method is enabling the expander.
None Code example
Invoke the
Try it: enables the jqxExpander
|
||||||||
expand | Method | |||||||
Method used for expanding the expander's content.
None Code example
Invoke the
Try it: expands the jqxExpander
|
||||||||
focus | Method | |||||||
This method focuses on the expander. When the widget is focused, keyboard navigation can be used. Here is a list of the keys, supported by jqxExpander and their function:
None Code example
Invoke the
Try it: focuses the jqxExpander
|
||||||||
getContent | Method | |||||||
Getting expander's content. Returns a string with the content's HTML.
String Code example
Invoke the
|
||||||||
getHeaderContent | Method | |||||||
Getting expander's header content. Returns a string with the header's HTML.
String Code example
Invoke the
|
||||||||
invalidate | Method | |||||||
This method refreshes the expander.
None Code example
Invoke the
Try it: invalidates the jqxExpander
|
||||||||
refresh | Method | |||||||
This method refreshes the expander.
None Code example
Invoke the
Try it: refresh the jqxExpander
|
||||||||
render | Method | |||||||
This method renders the expander.
None Code example
Invoke the
Try it: renders the jqxExpander
|
||||||||
setHeaderContent | Method | |||||||
This method is setting specific content to the expander's header.
None Code example
Invoke the
|
||||||||
setContent | Method | |||||||
This method is setting specific content to the expander.
None Code example
Invoke the
|