官术网_书友最值得收藏!

Entering multiple values with Chips

The Chip component is used to represent multiple complex entities in an input field as small blocks, such as contact information. A Chip may contain entities such as photo, title, text, rules, icons, or even a contact. This is useful to represent information in a compact way. The following basic example of the Chips component represents contact names in an order. By default, each entity can be deleted with the help of a cross icon or backspace keystroke:

<p-chips [(ngModel)]="contactnames" name="basic"></p-chips>

The following screenshot shows a snapshot result of the company contact names as a Chip example:

The Chip component supports two event callbacks named onAdd and onRemove. These event callbacks will be invoked when adding and removing Chips from the input box, respectively.

主站蜘蛛池模板: 铜川市| 曲麻莱县| 成武县| 伊春市| 嘉善县| 日土县| 江西省| 大城县| 汉源县| 潼关县| 饶平县| 饶阳县| 甘洛县| 沧源| 广灵县| 宝坻区| 蕉岭县| 张家界市| 英吉沙县| 新野县| 永德县| 阜平县| 灵川县| 杭锦后旗| 江津市| 文安县| 墨竹工卡县| 吴堡县| 长海县| 定安县| 永年县| 抚顺市| 于都县| 丰县| 镇江市| 房产| 合水县| 镇康县| 兖州市| 吴江市| 昌宁县|