Files
NativeScript/tests/app/ui/search-bar/search-bar-tests-native.ios.ts
Panayot Cankov 05cd636fc8 npm scripts for typechecking public .d.ts-es and running tslint (#2934)
* npm scripts for typechecking public .d.ts-es and running tslint

* Update test.ts
2016-10-27 15:18:54 +03:00

11 lines
473 B
TypeScript

import { SearchBar } from "ui/search-bar";
import { Color } from "color";
import * as utils from "utils/utils";
export function getNativeHintColor(searchBar: SearchBar): Color {
return (<any>searchBar)._placeholderLabel ? utils.ios.getColor((<any>searchBar)._placeholderLabel.textColor) : undefined;
}
export function getNativeFontSize(searchBar: SearchBar): number {
return (<any>searchBar)._textField ? (<any>searchBar)._textField.font.pointSize : undefined;
}