mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
17 lines
526 B
TypeScript
17 lines
526 B
TypeScript
import { EventData } from "tns-core-modules/data/observable";
|
|
import { SearchBar } from "tns-core-modules/ui/search-bar"
|
|
|
|
export function navigatingTo(args: EventData) {
|
|
console.log("page navigating to");
|
|
}
|
|
// >> searchbar-clear
|
|
export function onClear(args) {
|
|
console.log("clear search-bar text");
|
|
}
|
|
// << searchbar-clear
|
|
// >> searchbar-submit
|
|
export function onSubmit(args) {
|
|
var searchbar: SearchBar = <SearchBar>args.object;
|
|
console.log("Search submit result: " + searchbar.text);
|
|
}
|
|
// << searchbar-submit
|