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
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChipItem : OwningComponentBase
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 |
---|
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 |
---|
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 |
---|
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 |
---|
System.String |
LeadingIconUrl
Specifies the leading icon url for the chip.
Declaration
public string LeadingIconUrl { get; set; }
Property Value
Type |
---|
System.String |
LeadingText
Specifies the customized text value for the avatar in the chip.
Declaration
public string LeadingText { get; set; }
Property Value
Type |
---|
System.String |
Text
Specifies the text content for the chip.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TrailingIconCss
Specifies the trailing icon CSS class for the chip.
Declaration
public string TrailingIconCss { get; set; }
Property Value
Type |
---|
System.String |
TrailingIconUrl
Specifies the leading icon url for the chip.
Declaration
public string TrailingIconUrl { get; set; }
Property Value
Type |
---|
System.String |
Value
This value property helps to store the chip component values.
Declaration
public string Value { get; set; }
Property Value
Type |
---|
System.String |
Methods
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | ="Task". |
OnParametersSetAsync()
Method invoked when any changes in component state occurs.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | ="Task". |