Searchbar
ion-searchbar
ion-searchbarManages the display of a Searchbar which can be used to search or filter items.
Usage
<ion-searchbar
[(ngModel)]="myInput"
[showCancelButton]="shouldShowCancel"
(ionInput)="onInput($event)"
(ionCancel)="onCancel($event)">
</ion-searchbar>
Input Properties
| Attr | Type | Details |
|---|---|---|
| cancelButtonText | string |
Set the the cancel button text. Default: |
| showCancelButton | boolean |
Whether to show the cancel button or not. Default: |
| debounce | number |
How long, in milliseconds, to wait to trigger the |
| placeholder | string |
Set the input's placeholder. Default |
| autocomplete | string |
Set the input's autocomplete property. Values: |
| autocorrect | string |
Set the input's autocorrect property. Values: |
| spellcheck | string|boolean |
Set the input's spellcheck property. Values: |
| type | string |
Set the type of the input. Values: |
| value | string |
Set the input value. |
Output Events
| Attr | Details |
|---|---|
| ionInput | When the Searchbar input has changed including cleared. |
| ionBlur | When the Searchbar input has blurred. |
| ionFocus | When the Searchbar input has focused. |
| ionCancel | When the cancel button is clicked. |
| ionClear | When the clear input button is clicked. |