1 | import { ActionBar as ActionBarDefinition, ActionItems as ActionItemsDefinition, ActionItem as ActionItemDefinition, NavigationButton, IOSActionItemSettings, AndroidActionItemSettings, AndroidActionBarSettings } from '.';
|
2 | import { CoreTypes } from '../../core-types';
|
3 | import { View } from '../core/view';
|
4 | import { ViewBase } from '../core/view-base';
|
5 | import { CssProperty, Property } from '../core/properties';
|
6 | import { Style } from '../styling/style';
|
7 | export 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 | }
|
41 | export 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 | }
|
53 | export 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 | }
|
72 | export declare function isVisible(item: ActionItemDefinition): boolean;
|
73 | export declare const titleProperty: Property<ActionBarBase, string>;
|
74 | export declare function traceMissingIcon(icon: string): void;
|
75 | export declare const iosIconRenderingModeProperty: Property<ActionBarBase, "automatic" | "alwaysOriginal" | "alwaysTemplate">;
|
76 | export declare const textProperty: Property<ActionItemBase, string>;
|
77 | export declare const iconProperty: Property<ActionItemBase, string>;
|
78 | export declare const visibilityProperty: Property<ActionItemBase, string>;
|
79 | export declare const flatProperty: Property<ActionBarBase, boolean>;
|
80 | export declare const androidContentInsetLeftProperty: CssProperty<Style, CoreTypes.LengthType>;
|
81 | export declare const androidContentInsetRightProperty: CssProperty<Style, CoreTypes.LengthType>;
|