Class Accordion
Inheritance
Namespace: Syncfusion.EJ2.Navigations
Assembly: Syncfusion.EJ2.dll
Syntax
public class Accordion : EJTagHelper
Constructors
Accordion()
Declaration
public Accordion()
Properties
Animation
Specifies the animation configuration settings for expanding and collapsing the panel.
Declaration
public AccordionAnimationSettings Animation { get; set; }
Property Value
Type | Description |
---|---|
AccordionAnimationSettings | The default value is null |
Clicked
The event will be fired while clicking anywhere within the Accordion.
Declaration
public string Clicked { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Created
The event will be fired once the control rendering is completed.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
DataSource
Specifies the datasource for the accordion items.
Declaration
public object DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Destroyed
The event will be fired when the control gets destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
EnableHtmlSanitizer
Specifies whether to enable the rendering of untrusted HTML values in the Accordion component. When this property is enabled, the component will sanitize any suspected untrusted strings and scripts before rendering them.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Expanded
The event will be fired after the item gets collapsed/expanded.
Declaration
public string Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ExpandedIndices
Specifies the expanded items at initial load.
Declaration
public double[] ExpandedIndices { get; set; }
Property Value
Type | Description |
---|---|
System.Double[] | The default value is null |
Expanding
The event will be fired before the item gets collapsed/expanded.
Declaration
public string Expanding { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ExpandMode
Specifies the options to expand single or multiple panel at a time.
The possible values are:
Single
: Sets to expand only one Accordion item at a time.
Multiple
: Sets to expand more than one Accordion item at a time.
Declaration
public ExpandMode ExpandMode { get; set; }
Property Value
Type | Description |
---|---|
ExpandMode | The default value is ExpandMode.Multiple |
HeaderTemplate
Specifies the header title template option for accordion items.
Declaration
public string HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Height
Specifies the height of the Accordion in pixels/number/percentage. Number value is considered as pixels.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "auto" |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
Items
An array of item that is used to specify Accordion items.
Declaration
public List<AccordionItem> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Navigations.AccordionItem> | The default value is null |
ItemTemplate
Specifies the template option for accordion items.
Declaration
public string ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Width
Specifies the width of the Accordion in pixels/number/percentage. Number value is considered as pixels.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "100%" |