- Angular UI Development with PrimeNG
- Sudheer Jonna Oleg Varaksin
- 126字
- 2021-07-15 17:33:04
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.
推薦閱讀
- 數據結構(Java語言描述)
- PHP+MySQL網站開發技術項目式教程(第2版)
- Functional Programming in JavaScript
- 高級C/C++編譯技術(典藏版)
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Python貝葉斯分析(第2版)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Oracle從入門到精通(第5版)
- Oracle 18c 必須掌握的新特性:管理與實戰
- 單片機C語言程序設計實訓100例
- Django 5企業級Web應用開發實戰(視頻教學版)
- 算法圖解
- Neo4j 3.x入門經典
- Java設計模式深入研究
- Visual FoxPro程序設計習題及實驗指導