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