Class AccordionItem
Inheritance
Namespace: Syncfusion.EJ2.Navigations
Assembly: Syncfusion.EJ2.dll
Syntax
public class AccordionItem : EJTagHelper
Constructors
AccordionItem()
Declaration
public AccordionItem()
Properties
Content
Sets the text content to be displayed for the Accordion item.
You can set the content of the Accordion item using content
property.
It also supports to include the title as HTML element
, string
, or query selector
.
Declaration
public string Content { 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> |
CssClass
Defines single/multiple classes (separated by a space) are to be used for Accordion item customization.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Disabled
Sets true to disable an accordion item.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Expanded
Sets the expand (true) or collapse (false) state of the Accordion item. By default, all the items are in a collapsed state.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Header
Sets the header text to be displayed for the Accordion item.
You can set the title of the Accordion item using header
property.
It also supports to include the title as HTML element
, string
, or query selector
.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
IconCss
Defines an icon with the given custom CSS class that is to be rendered before the header text.
Add the css classes to the iconCss
property and write the css styles to the defined class to set images/icons.
Adding icon is applicable only to the header.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Id
Sets unique ID to accordion item.
Declaration
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Overrides
Visible
Sets false to hide an accordion item.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |