mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
bde431bb44
Ref gh-1528
33 lines
614 B
JavaScript
33 lines
614 B
JavaScript
define( [
|
|
"lib/common",
|
|
"ui/accordion"
|
|
], function( common ) {
|
|
|
|
common.testWidget( "accordion", {
|
|
defaults: {
|
|
active: 0,
|
|
animate: {},
|
|
classes: {
|
|
"ui-accordion-header": "ui-corner-top",
|
|
"ui-accordion-header-collapsed": "ui-corner-all",
|
|
"ui-accordion-content": "ui-corner-bottom"
|
|
},
|
|
collapsible: false,
|
|
disabled: false,
|
|
event: "click",
|
|
header: "> li > :first-child, > :not(li):even",
|
|
heightStyle: "auto",
|
|
icons: {
|
|
"activeHeader": "ui-icon-triangle-1-s",
|
|
"header": "ui-icon-triangle-1-e"
|
|
},
|
|
|
|
// callbacks
|
|
activate: null,
|
|
beforeActivate: null,
|
|
create: null
|
|
}
|
|
});
|
|
|
|
} );
|