Class ChipItem
A Chip is a small block of essential information that contains the text, image, or both and mostly used in contacts, mails, or filter tags.
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
ChipItem
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChipItem : SfBaseComponent
Constructors
ChipItem()
Declaration
public ChipItem()
Properties
CssClass
Specifies the custom classes to be added to the chip element used to customize the Chip.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Enabled
Specifies a value that indicates whether the chip component is enabled or not.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HtmlAttributes
You can add the additional html attributes such as title to the each chip element.
Declaration
public Dictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
LeadingIconCss
Specifies the leading icon CSS class for the chip.
Declaration
public string LeadingIconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LeadingIconUrl
Specifies the leading icon url for the chip.
Declaration
public string LeadingIconUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LeadingText
Specifies the customized text value for the avatar in the chip.
Declaration
public string LeadingText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Specifies the text content for the chip.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TrailingIconCss
Specifies the trailing icon CSS class for the chip.
Declaration
public string TrailingIconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TrailingIconUrl
Specifies the leading icon url for the chip.
Declaration
public string TrailingIconUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
This value property helps to store the chip component values.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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()
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |