[]
        
(Showing Draft Content)

C1.Web.Mvc.Accordion

Accordion Class

Defines a control which is a vertically stacked set of interactive headings that each contain a title.

Inheritance
Accordion
Implements
Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public class Accordion : Control, IHtmlString, ITemplate
Remarks

The headings function as controls that enable users to reveal or hide their associated sections of content. Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.

Constructors

Name Description
Accordion(HtmlHelper, string)

Creates one Accordion instance.

Properties

Name Description
AllowCollapseAll

Gets or sets a value that determines whether users should be allowed to collapse all the items.

AllowExpandMany

Gets or sets a value that determines whether users should be allowed to expand multiple panes at a time.

AutoSwitch

Gets or sets a value that determines whether the control should switch panes automatically when the user selects a pane using the arrow keys.

IsAnimated

Gets or sets a value that determines whether collapsing or expanding panes should be animated.

OnClientSelectedIndexChanged

Occurs when the value of the selectedIndex property changes.

Panes

Gets the collection of AccordionPane objects whose header and content properties determine the content of the Accordion control.

SelectedIndex

Gets or sets the index of the currently selected (active) pane.

ShowIcons

Gets or sets a value that determines whether shows collapsed/expanded icons in the pane headers.

Extension Methods