UNPKG

3.82 kBTypeScriptView Raw
1import { ActionBar as ActionBarDefinition, ActionItems as ActionItemsDefinition, ActionItem as ActionItemDefinition, NavigationButton, IOSActionItemSettings, AndroidActionItemSettings, AndroidActionBarSettings } from '.';
2import { CoreTypes } from '../../core-types';
3import { View } from '../core/view';
4import { ViewBase } from '../core/view-base';
5import { CssProperty, Property } from '../core/properties';
6import { Style } from '../styling/style';
7export declare class ActionBarBase extends View implements ActionBarDefinition {
8 private _actionItems;
9 private _navigationButton;
10 private _titleView;
11 title: string;
12 flat: boolean;
13 iosIconRenderingMode: 'automatic' | 'alwaysOriginal' | 'alwaysTemplate';
14 effectiveContentInsetLeft: number;
15 effectiveContentInsetRight: number;
16 disposeNativeView(): void;
17 get navigationButton(): NavigationButton;
18 set navigationButton(value: NavigationButton);
19 get actionItems(): ActionItems;
20 set actionItems(value: ActionItems);
21 get titleView(): View;
22 set titleView(value: View);
23 get androidContentInset(): string | CoreTypes.LengthType;
24 set androidContentInset(value: string | CoreTypes.LengthType);
25 get androidContentInsetLeft(): CoreTypes.LengthType;
26 set androidContentInsetLeft(value: CoreTypes.LengthType);
27 get androidContentInsetRight(): CoreTypes.LengthType;
28 set androidContentInsetRight(value: CoreTypes.LengthType);
29 get ios(): any;
30 get android(): AndroidActionBarSettings;
31 get _childrenCount(): number;
32 constructor();
33 static onTitleChanged: any;
34 update(): void;
35 _onTitlePropertyChanged(): void;
36 _addArrayFromBuilder(name: string, value: Array<any>): void;
37 eachChildView(callback: (child: View) => boolean): void;
38 eachChild(callback: (child: ViewBase) => boolean): void;
39 _isEmpty(): boolean;
40}
41export declare class ActionItems implements ActionItemsDefinition {
42 private _items;
43 private _actionBar;
44 constructor(actionBar: ActionBarDefinition);
45 addItem(item: ActionItemDefinition): void;
46 removeItem(item: ActionItemDefinition): void;
47 getItems(): Array<ActionItemDefinition>;
48 getVisibleItems(): Array<ActionItemDefinition>;
49 getItemAt(index: number): ActionItemDefinition;
50 setItems(items: Array<ActionItemDefinition>): void;
51 private invalidate;
52}
53export declare class ActionItemBase extends ViewBase implements ActionItemDefinition {
54 static tapEvent: string;
55 private _actionBar;
56 private _actionView;
57 ios: IOSActionItemSettings;
58 android: AndroidActionItemSettings;
59 text: string;
60 icon: string;
61 visibility: string;
62 get actionView(): View;
63 set actionView(value: View);
64 get actionBar(): ActionBarDefinition;
65 set actionBar(value: ActionBarDefinition);
66 onLoaded(): void;
67 _raiseTap(): void;
68 _addChildFromBuilder(name: string, value: any): void;
69 _onVisibilityChanged(visibility: string): void;
70 eachChild(callback: (child: ViewBase) => boolean): void;
71}
72export declare function isVisible(item: ActionItemDefinition): boolean;
73export declare const titleProperty: Property<ActionBarBase, string>;
74export declare function traceMissingIcon(icon: string): void;
75export declare const iosIconRenderingModeProperty: Property<ActionBarBase, "automatic" | "alwaysOriginal" | "alwaysTemplate">;
76export declare const textProperty: Property<ActionItemBase, string>;
77export declare const iconProperty: Property<ActionItemBase, string>;
78export declare const visibilityProperty: Property<ActionItemBase, string>;
79export declare const flatProperty: Property<ActionBarBase, boolean>;
80export declare const androidContentInsetLeftProperty: CssProperty<Style, CoreTypes.LengthType>;
81export declare const androidContentInsetRightProperty: CssProperty<Style, CoreTypes.LengthType>;