Skip to main content

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.

public class ChipList : ej2Base

Constructors​

Instance member 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);

Instance member ChipList(options)​

Constructs a new instance of the ChipList class.

NameTypeDescription
optionsObjectInitial 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);

Implements​