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, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
SfCard()
Declaration
public SfCard()
Properties
ChildContent
Represents a segment of UI content, implemented.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | Accepts a RenderFragment that defines the content of the UI element. |
CssClass
Defines CssClass for the Card component.
Declaration
[Parameter]
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
public bool EnableRtl { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
ID
Defines Id for the Card component.
Declaration
[Parameter]
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Accepts the string value. It represents the unique identifier for the Card component. |
Orientation
Defines the Orientation of the card.
Declaration
[Parameter]
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 |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitialized()
Method invoked when the component is ready to start.
Declaration
protected override void OnInitialized()
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |