You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then you get a callback object with the clicked/selected item and the selected items if you have multiple selected items (see [The `multiple-select`](#the-multiple-select)).
@@ -274,7 +269,7 @@ $scope.removedMethod = function (callback) {
Then you get a callback object with the removed item and the selected items if you have multiple selected items (see [The `multiple-select`](#the-multiple-select)).
@@ -299,7 +294,7 @@ $scope.modelToItemMethod = function (modelValue) {
299
294
300
295
And set the `model-to-item-method` on the directive:
You are able to set this is on each component if you have multiple components built up in a ng-repeat where you do not want to have multiple `items-method`
@@ -329,35 +324,35 @@ need to define one callback method and you can distinguish the calls with the `c
329
324
You are also able to set the placeholder on the input field and on the search input field if you add the `placeholder`
330
325
attribute to the directive:
331
326
```html
332
-
<ion-autocompleteng-model="model"placeholder="Enter the query to search for ..." />`
327
+
<inpution-autocompletetype="text"readonly="readonly"class="ion-autocomplete"autocomplete="off"ng-model="model"placeholder="Enter the query to search for ..." />`
333
328
```
334
329
335
330
### Cancel button label
336
331
337
332
You are also able to set the cancel button label (defaults to `Cancel`) if you add the `cancel-label` attribute to the directive:
You are also able to set the select items label (defaults to `Select an item...`) if you add the `select-items-label` attribute to the directive:
345
340
```html
346
-
<ion-autocompleteng-model="model"select-items-label="Select your items..." />`
341
+
<inpution-autocompletetype="text"readonly="readonly"class="ion-autocomplete"autocomplete="off"ng-model="model"select-items-label="Select your items..." />`
347
342
```
348
343
349
344
### Selected items label
350
345
351
346
You are also able to set the selected items label (defaults to `Selected items:`) if you add the `selected-items-label` attribute to the directive:
This way you are able to override the default template (the `searchContainerTemplate` variable [here](https://github.com/guylabs/ion-autocomplete/blob/master/src/ion-autocomplete.js#L75))
@@ -389,7 +384,7 @@ $scope.templateData = {
389
384
```
390
385
And now you just need to add the `templateData` attribute on the directive:
0 commit comments