Class SfCard
The Card is a container-based user interface control built using for displaying organized content.
Inherited Members
Namespace: Syncfusion.Blazor.Cards
Assembly: Syncfusion.Blazor.dll
Syntax
public class SfCard : SfBaseComponent
Constructors
SfCard()
Declaration
public SfCard()
Properties
ChildContent
Represents a segment of UI content, implemented.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Components.RenderFragment | Accepts a RenderFragment that defines the content of the UI element. |
CssClass
Defines CssClass for the Card component.
Declaration
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Accepts a CSS class string separated by outline to customize the appearance of card component. |
EnableRtl
Enable or disable rendering component in the right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
HtmlAttributes
You can add the additional html attributes such as id, title etc., to the button element.
Declaration
public Dictionary<string, object> HtmlAttributes { get; set; }
Property Value
| Type |
|---|
| System.Collections.Generic.Dictionary<System.String, System.Object> |
ID
Defines Id for the Card component.
Declaration
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Accepts the string value. It represents the unique identifier for the Card component. |
Orientation
Defines the Orientation of the card.
Declaration
public CardOrientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| CardOrientation | A value of the CardOrientation enumeration that specifies the orientation of the card component. The default value is Vertical. |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitialized()
Method invoked when the component is ready to start.
Declaration
protected override void OnInitialized()
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |