Class AccordionAnimationSettings
A class that represents the animations to appear on expand and collapse action of AccordionItem.
Inheritance
Namespace: Syncfusion.Blazor.Navigations
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccordionAnimationSettings : OwningComponentBase
Remarks
AccordionAnimationExpand and AccordionAnimationCollapse can be used to set expand and collapse animation for accordion item respectively.
Examples
<SfAccordion>
<AccordionAnimationSettings>
<AccordionAnimationExpand Effect="AnimationEffect.FadeIn" Duration="500"></AccordionAnimationExpand>
<AccordionAnimationCollapse Effect="AnimationEffect.FadeOut" Duration="500"></AccordionAnimationCollapse>
</AccordionAnimationSettings>
</SfAccordion>
Constructors
AccordionAnimationSettings()
Declaration
public AccordionAnimationSettings()
Properties
ChildContent
Gets or sets the Child Content for the Accordion Animation Settings.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
Collapse
Gets or sets the animation to appear while collapsing the AccordionItem.
Declaration
public AccordionAnimationCollapse Collapse { get; set; }
Property Value
Type | Description |
---|---|
AccordionAnimationCollapse | If we set the collapse animation, then the provided AccordionAnimationCollapse value is applied for collapse action, otherwise the default |
Expand
Gets or sets the animation to appear while expanding the AccordionItem.
Declaration
public AccordionAnimationExpand Expand { get; set; }
Property Value
Type | Description |
---|---|
AccordionAnimationExpand | If we set the expand animation, then the provided AccordionAnimationExpand value is applied for expand action, otherwise the default |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |