mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
17 lines
527 B
TypeScript
17 lines
527 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
|