Active(int panelIndex)

Sets the index of the panel which is active when the accordion is created.

Parameters

panelIndex The panel index.

Animate(bool animate)

Sets a value indicating whether the accordion should animate panel changes.

Parameters

animate If false, the animation is disabled, otherwise the animation is enabled.

Animate(uint duration)

Sets the duration of the animation with default easing.

Parameters

duration The duration in milliseconds.

Animate(JQueryUIHelpers.Easing easing)

Sets the easing of the animation with default duration.

Parameters

easing The easing.

Animate(JQueryUIHelpers.Easing easing, uint duration)

Sets the easing and duration of the animation.

Parameters

easing The easing.
duration The duration.

Animate(JQueryUIHelpers.Easing easing, uint duration, JQueryUIHelpers.Easing downEasing, uint downDuration)

Sets the easing and duration of the animation. Down easing and duration are used when the panel being activated has a lower index than the currently active panel.

Parameters

easing The easing.
duration The duration.
downEasing The down easing.
downDuration The down duration.

Collapsible(bool collapsible)

Sets a value indicating whether all the sections can be closed at once.

Parameters

collapsible If true, all the sections can be closed at once.

Collapsible(bool collapsible, bool startCollapsed)

Sets whether all the sections can be closed at once and whether they start closed.

Parameters

collapsible If true, all the sections can be closed at once.
startCollapsed If true, all sections start closed.

Disabled(bool disabled)

Sets a value indicating whether the accordion is disabled.

Parameters

disabled If true, the accordion is disabled.

Event(JQueryUIHelpers.Event eventType)

Sets the name of the event to trigger the accordion.

Parameters

eventType The event.

Header(string selector)

Sets the jQuery selector for the header element and defines the header tag. Supports: tag or tag.class

Parameters

selector The header selector.

HeightStyle(JQueryUIHelpers.HeightStyle heightStyle)

Sets the height style of the accordion and its panels.

Parameters

heightStyle The height style.

Icons(string headerIconCssClassName, string activeHeaderIconCssClassName)

Sets the icons used for headers.

Parameters

headerIconCssClassName The CSS class name of the header icon.
activeHeaderIconCssClassName The CSS class name of the active header icon.

OnCreate(string functionName)

Sets the name of the JavaScript function that is triggered when the accordion is created.

Parameters

functionName The name of the function.

OnActivate(string functionName)

Sets the name of the JavaScript function that is triggered when a panel is activated.

Parameters

functionName The name of the function.

OnBeforeActivate(string functionName)

Sets the name of the JavaScript function that is triggered before a panel is activated.

Parameters

functionName The name of the function.