Class AccordionItemModel
A class that holds option for Accordion Items.
Inheritance
Namespace: Syncfusion.Blazor.Navigations
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccordionItemModel : Object
Constructors
AccordionItemModel()
Declaration
public AccordionItemModel()
Properties
Content
Sets the text content to be displayed for the Accordion item.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContentTemplate
Sets the content to be displayed for the Accordion item.
Declaration
public RenderFragment ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment |
CssClass
Defines the single/multiple classes (separated by a space) that should be used for Accordion item customization.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Disabled
Specifies a value that indicates whether the accordion item is disabled or not.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Expanded
Specifies a Boolean value that indicates whether the accordion pane is expanded or not.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Header
Sets the header text to be displayed for the Accordion item.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HeaderTemplate
Sets the header to be displayed for the Accordion item.
Declaration
public RenderFragment HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment |
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 the images/icons.
Adding icon is applicable only to the header.
Declaration
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Sets Id attribute for accordion item.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Visible
Specifies a Boolean value that indicates whether the accordion item is visible or not.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |