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

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.

主站蜘蛛池模板: 洞口县| 宝坻区| 鹤壁市| 晋宁县| 井冈山市| 柳林县| 蓬溪县| 双辽市| 石棉县| 深州市| 温宿县| 贵港市| 辽源市| 南充市| 普兰县| 沧州市| 桓台县| 开远市| 塔城市| 光泽县| 卓尼县| 绥芬河市| 霍邱县| 井研县| 哈巴河县| 寿光市| 望城县| 西贡区| 邳州市| 神池县| 方山县| 乌鲁木齐市| 东阳市| 旌德县| 赣州市| 措勤县| 永靖县| 卢龙县| 义马市| 乌兰浩特市| 渝中区|