Class AccordionItem
Defines accordion panels.
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
AccordionItem
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccordionItem : SfBaseComponent
Constructors
AccordionItem()
Declaration
Properties
ChildContent
Child Content for the Accordion item.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
Description |
Microsoft.AspNetCore.Components.RenderFragment |
|
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
Specify a Boolean value that indicates whether the accordion panel is expanded or not.
Declaration
public bool Expanded { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ExpandedChanged
Gets or sets a callback of the bound value.
Declaration
public EventCallback<bool> ExpandedChanged { get; set; }
Property Value
Type |
Description |
Microsoft.AspNetCore.Components.EventCallback<System.Boolean> |
|
Sets the header text to be displayed for the Accordion item.
Declaration
public string Header { get; set; }
Property Value
Type |
Description |
System.String |
|
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 |
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder |
__builder |
|
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()