Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 993c277

Browse files
author
Kamil Kisiela
committed
docs(chips): onAdd callback
1 parent 3a861d0 commit 993c277

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/types/chips.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ md-chips
1515
placeholder: "+tags",
1616
secondaryPlaceholder: "Add tag",
1717
deleteButtonLabel: "Remove",
18-
deleteHint: "Remove tag"
18+
deleteHint: "Remove tag",
19+
onAdd: function() {
20+
console.log('new chip');
21+
}
1922
}
2023
}
2124
```
@@ -41,3 +44,7 @@ A label for the delete button. Also hidden and read by screen readers.
4144
#### templateOptions.deleteHint *: string*
4245

4346
A string read by screen readers instructing users that pressing the delete key will remove the chip.
47+
48+
#### templateOptions.onAdd *: function*
49+
50+
An expression which will be called when a chip has been added.

0 commit comments

Comments
 (0)