Files
ionic-framework/ionic/components/searchbar/test/floating/main.html
Brandy Carney b8ad42c797 refactor(searchbar): changed Cancel button to show by default
Renamed some searchbar input properties. Fixed the cancel button
showing when it wasn’t focused.
2015-12-10 18:52:19 -05:00

25 lines
1.2 KiB
HTML

<ion-content>
<h5 padding-left padding-top> Search - Default </h5>
<ion-searchbar [(ng-model)]="defaultSearch" (input)="triggerInput()" class="e2eDefaultFloatingSearchbar"></ion-searchbar>
<p padding-left>
Default Search: <b>{{ defaultSearch }}</b>
</p>
<h5 padding-left> Search - Custom Placeholder </h5>
<ion-searchbar [(ng-model)]="customPlaceholder" placeholder="Filter Schedules" class="e2eCustomPlaceholderFloatingSearchbar"></ion-searchbar>
<h5 padding-left> Search - Hide Cancel Button </h5>
<ion-searchbar [(ng-model)]="defaultCancel" hide-cancel-button class="e2eDefaultCancelButtonFloatingSearchbar"></ion-searchbar>
<h5 padding-left> Search - Custom Cancel Button Danger </h5>
<ion-searchbar [(ng-model)]="customCancel" cancel-button-text="Really Long Cancel" class="e2eCustomCancelButtonFloatingSearchbar" danger></ion-searchbar>
<h5 padding-left> Search - Custom Cancel Action</h5>
<ion-searchbar [(ng-model)]="customCancelAction" cancel-button-text="Done" [cancel-action]="myCancelAction" class="e2eCustomCancelActionFloatingSearchbar"></ion-searchbar>
<div *ng-if="clickedCustomAction">
Clicked custom action with input = {{customCancelAction}}
</div>
</ion-content>