@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
45 lines (44 loc) • 2.4 kB
TypeScript
import { Font } from '../styling/font';
import { SearchBarBase, textProperty, hintProperty, textFieldHintColorProperty, textFieldBackgroundColorProperty, clearButtonColorProperty } from './search-bar-common';
import { isUserInteractionEnabledProperty, isEnabledProperty } from '../core/view';
import { Color } from '../../color';
import { colorProperty, backgroundColorProperty, backgroundInternalProperty, fontInternalProperty, fontSizeProperty } from '../styling/style-properties';
import { Background } from '../styling/background';
export * from './search-bar-common';
export declare class SearchBar extends SearchBarBase {
[isEnabledProperty.setNative]: (value: boolean) => void;
[isUserInteractionEnabledProperty.setNative]: (value: boolean) => void;
[backgroundColorProperty.getDefault]: () => number;
[backgroundColorProperty.setNative]: (value: Color) => void;
[colorProperty.getDefault]: () => number;
[colorProperty.setNative]: (value: Color) => void;
[fontSizeProperty.getDefault]: () => {
nativeSize: number;
};
[fontSizeProperty.setNative]: (value: number | {
nativeSize: number;
}) => void;
[fontInternalProperty.getDefault]: () => android.graphics.Typeface;
[fontInternalProperty.setNative]: (value: Font | android.graphics.Typeface) => void;
[backgroundInternalProperty.getDefault]: () => any;
[backgroundInternalProperty.setNative]: (value: android.graphics.drawable.Drawable | Background) => void;
[textProperty.getDefault]: () => string;
[textProperty.setNative]: (value: string) => void;
[hintProperty.getDefault]: () => string;
[hintProperty.setNative]: (value: string) => void;
[textFieldBackgroundColorProperty.getDefault]: () => android.graphics.drawable.Drawable;
[textFieldBackgroundColorProperty.setNative]: (value: Color) => void;
[textFieldHintColorProperty.getDefault]: () => number;
[textFieldHintColorProperty.setNative]: (value: Color) => void;
[clearButtonColorProperty.setNative]: (value: Color) => void;
nativeViewProtected: androidx.appcompat.widget.SearchView;
private _searchTextView;
private _searchPlate;
dismissSoftInput(): void;
focus(): boolean;
createNativeView(): androidx.appcompat.widget.SearchView;
initNativeView(): void;
disposeNativeView(): void;
private _getTextView;
private _getSearchPlate;
}