UNPKG

1.2 kBJavaScriptView Raw
1import { View, CSSType } from '../core/view';
2import { Property } from '../core/properties';
3import { Color } from '../../color';
4let SearchBarBase = class SearchBarBase extends View {
5};
6SearchBarBase.submitEvent = 'submit';
7SearchBarBase.clearEvent = 'clear';
8SearchBarBase = __decorate([
9 CSSType('SearchBar')
10], SearchBarBase);
11export { SearchBarBase };
12SearchBarBase.prototype.recycleNativeView = 'auto';
13export const textProperty = new Property({
14 name: 'text',
15 defaultValue: '',
16 affectsLayout: __APPLE__,
17});
18textProperty.register(SearchBarBase);
19export const hintProperty = new Property({
20 name: 'hint',
21 defaultValue: '',
22});
23hintProperty.register(SearchBarBase);
24export const textFieldHintColorProperty = new Property({
25 name: 'textFieldHintColor',
26 equalityComparer: Color.equals,
27 valueConverter: (v) => new Color(v),
28});
29textFieldHintColorProperty.register(SearchBarBase);
30export const textFieldBackgroundColorProperty = new Property({
31 name: 'textFieldBackgroundColor',
32 equalityComparer: Color.equals,
33 valueConverter: (v) => new Color(v),
34});
35textFieldBackgroundColorProperty.register(SearchBarBase);
36//# sourceMappingURL=search-bar-common.js.map
\No newline at end of file