|
public void onToggleClick()
{
var value = this.textbox.Value;
// You can get the update value in chip.
ChipModel chips = new ChipModel();
chips.Text = value;
chip.Add(chips);
} |
|
<SfChipList>
<ChipCollection>
<ChipListChip Text="CEO" LeadingIconUrl="http://ej2.syncfusion.com/demos/src/chips/images/anne.png"></ChipListChip>
<ChipListChip Text="CEO" LeadingIconUrl="http://ej2.syncfusion.com/demos/src/chips/images/anne.png"></ChipListChip>
</ChipCollection>
</SfChipList> |
What is the correct way of doing this in 2022 because when I try to set a property like Text, on a ChipItem, the IDE tells me that the Component parameter "Text" should not be set outside of component.
After trying to assign ci.Text, that's where I call _selectedTeamChip.AddChip(ci);