angular-formly-material
Version:
Material design templates for angular-formly
66 lines (43 loc) • 1.46 kB
Markdown
chips
=====
md-chips
--------
"chips",
key: "tags",
templateOptions: {
theme: "custom",
placeholder: "+tags",
secondaryPlaceholder: "Add tag",
deleteButtonLabel: "Remove",
deleteHint: "Remove tag",
onAdd: function() {
console.log('new chip');
},
onRemove: function() {
console.log('chip removed');
}
}
}
```
Placeholder text that will be forwarded to the input.
Placeholder text that will be forwarded to the input, displayed when there is at least on item in the list.
A label for the delete button. Also hidden and read by screen readers.
A string read by screen readers instructing users that pressing the delete key will remove the chip.
An expression which will be called when a chip has been added.
An expression which will be called when a chip has been removed.
An expression which will be called when a chip has been selected.
```javascript
{
type: