- 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.
推薦閱讀
- 大話PLC(輕松動漫版)
- SQL Server 從入門到項目實踐(超值版)
- C#程序設計實訓指導書
- Python數據分析基礎
- Xcode 7 Essentials(Second Edition)
- C/C++算法從菜鳥到達人
- 深入淺出WPF
- INSTANT Sencha Touch
- NumPy Essentials
- 從Excel到Python:用Python輕松處理Excel數據(第2版)
- Azure Serverless Computing Cookbook
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- C++ Application Development with Code:Blocks
- Learning Splunk Web Framework
- Android Game Programming by Example