This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed
Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 5656 * </ul>
5757 * </ul>
5858 *
59- * <span style="font-size:.8em;text-align:center">
60- * Warning: This component is a WORK IN PROGRESS. If you use it now,
61- * it will probably break on you in the future.
62- * </span>
59+ * <span style="font-size:.8em;text-align:center">
60+ * Warning: This component is a WORK IN PROGRESS. If you use it now,
61+ * it will probably break on you in the future.
62+ * </span>
63+ *
64+ * Sometimes developers want to limit the amount of possible chips.<br/>
65+ * You can specify the maximum amount of chips by using the following markup.
66+ *
67+ * <hljs lang="html">
68+ * <md-chips
69+ * ng-model="myItems"
70+ * placeholder="Add an item"
71+ * md-max-chips="5">
72+ * </md-chips>
73+ * </hljs>
74+ *
75+ * In some cases, you have an autocomplete inside of the `md-chips`.<br/>
76+ * When the maximum amount of chips has been reached, you can also disable the autocomplete selection.<br/>
77+ * Here is an example markup.
78+ *
79+ * <hljs lang="html">
80+ * <md-chips ng-model="myItems" md-max-chips="5">
81+ * <md-autocomplete ng-hide="myItems.length > 5" ...></md-autocomplete>
82+ * </md-chips>
83+ * </hljs>
6384 *
6485 * @param {string=|object= } ng-model A model to bind the list of items to
6586 * @param {string= } placeholder Placeholder text that will be forwarded to the input.
You can’t perform that action at this time.
0 commit comments