mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
28 lines
642 B
TypeScript
28 lines
642 B
TypeScript
import {FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/angular2';
|
|
|
|
import {App} from 'ionic/ionic';
|
|
import {SearchPipe} from 'ionic/components/searchbar/searchbar';
|
|
|
|
@App({
|
|
templateUrl: 'main.html',
|
|
directives: [FORM_DIRECTIVES]
|
|
})
|
|
class IonicApp {
|
|
defaultSearch: string;
|
|
customPlaceholder: string;
|
|
defaultCancel: string;
|
|
customCancel: string;
|
|
customCancelLong: string;
|
|
customCancelAction: string;
|
|
clickedCustomAction: boolean = false;
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
myCancelAction(event, query) {
|
|
console.log("Clicked cancel action with", query);
|
|
this.clickedCustomAction = true;
|
|
}
|
|
}
|