From c984572eca931bb789b22f96114b5804a74fa1be Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sun, 12 Jun 2016 21:24:39 +0200 Subject: [PATCH] docs(chips): add info about disabling autocomplete if maximum has reached. * Adds a documentation about disabling the autocomplete, if the maximum amounts of chips has been reached. Closes #8332. --- src/components/chips/js/chipsDirective.js | 29 +++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/components/chips/js/chipsDirective.js b/src/components/chips/js/chipsDirective.js index a43084624e..eedade95e4 100644 --- a/src/components/chips/js/chipsDirective.js +++ b/src/components/chips/js/chipsDirective.js @@ -56,10 +56,31 @@ * * * - * - * Warning: This component is a WORK IN PROGRESS. If you use it now, - * it will probably break on you in the future. - * + * + * Warning: This component is a WORK IN PROGRESS. If you use it now, + * it will probably break on you in the future. + * + * + * Sometimes developers want to limit the amount of possible chips.
+ * You can specify the maximum amount of chips by using the following markup. + * + * + * + * + * + * + * In some cases, you have an autocomplete inside of the `md-chips`.
+ * When the maximum amount of chips has been reached, you can also disable the autocomplete selection.
+ * Here is an example markup. + * + * + * + * + * + * * * @param {string=|object=} ng-model A model to bind the list of items to * @param {string=} placeholder Placeholder text that will be forwarded to the input.