mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
25 lines
1.2 KiB
HTML
25 lines
1.2 KiB
HTML
<ion-content>
|
|
<h5 padding-left padding-top> Search - Default </h5>
|
|
<ion-searchbar [(ngModel)]="defaultSearch" (input)="triggerInput($event)" class="e2eDefaultFloatingSearchbar"></ion-searchbar>
|
|
|
|
<p padding-left>
|
|
Default Search: <b>{{ defaultSearch }}</b>
|
|
</p>
|
|
|
|
<h5 padding-left> Search - Custom Placeholder </h5>
|
|
<ion-searchbar [(ngModel)]="customPlaceholder" placeholder="Filter Schedules" class="e2eCustomPlaceholderFloatingSearchbar"></ion-searchbar>
|
|
|
|
<h5 padding-left> Search - Hide Cancel Button </h5>
|
|
<ion-searchbar [(ngModel)]="defaultCancel" hideCancelButton class="e2eDefaultCancelButtonFloatingSearchbar"></ion-searchbar>
|
|
|
|
<h5 padding-left> Search - Custom Cancel Button Danger </h5>
|
|
<ion-searchbar [(ngModel)]="customCancel" cancelButtonText="Really Long Cancel" class="e2eCustomCancelButtonFloatingSearchbar" danger></ion-searchbar>
|
|
|
|
<h5 padding-left> Search - Custom Cancel Action</h5>
|
|
<ion-searchbar [(ngModel)]="customCancelAction" cancelButtonText="Done" [cancelAction]="myCancelAction" class="e2eCustomCancelActionFloatingSearchbar"></ion-searchbar>
|
|
|
|
<div *ngIf="clickedCustomAction">
|
|
Clicked custom action with input = {{customCancelAction}}
|
|
</div>
|
|
</ion-content>
|