ChipList
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Chip is a small block of essential information that triggers an event on click action. It contains the text, an image, or both, mostly used in contacts, mails or filter tags.
- C#
- VB.NET
public class ChipList : ej2Base
Public Class ChipList
Inherits ej2Base
Constructors
ChipList()
Constructs a new instance of the ChipList class.
Example:
The following example creates a list of chips and configures it through the Options object.
var chipList = new ChipList();
chipList.Options.chips = new[] { "Small", "Medium", "Large" };
chipList.Options.selection = "Single";
this.Controls.Add(chipList);
ChipList(options)
Constructs a new instance of the ChipList class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a list of chips that allows multiple selection and handles the click event on the server.
var chipList = new ChipList(new
{
selection = "Multiple",
chips = new[]
{
new { text = "Open", value = "open" },
new { text = "In Progress", value = "progress" },
new { text = "Closed", value = "closed" }
}
});
chipList.Instance.onClick += new WidgetEventHandler((s, e) =>
{
AlertBox.Show($"Clicked {e.Data.text}");
});
this.Controls.Add(chipList);