UNPKG

nativescript-bubble-navigation

Version:

Nativescript plugin for Android & iOS that create beautiful navigation tabs

34 lines (33 loc) 1.41 kB
import { View } from 'tns-core-modules/ui/core/view'; import { EventData } from 'tns-core-modules/data/observable'; import { Property } from 'tns-core-modules/ui/core/properties'; export declare interface OnTabSelectedEventData extends EventData { name: string; position: number; } export declare abstract class BubbleNavigationBase extends View { readonly tabs: BubbleNavigationItemBase[]; constructor(); protected _tabs: BubbleNavigationItemBase[]; selectedTabIndex: number; mainBackgroundColor: string; selectTab(index: number): void; onTabSelected(index: number): void; protected abstract selectTabNative(index: number): void; } export declare const tabsProperty: Property<BubbleNavigationBase, BubbleNavigationItemBase[]>; export declare const tabBackgroundColorProperty: Property<BubbleNavigationBase, string>; export declare const paddingProperty: Property<BubbleNavigationBase, string>; export declare const elevationProperty: Property<BubbleNavigationBase, string>; export declare class BubbleNavigationItemBase extends View { index?: number; constructor(title: string, icon: string, colorActive?: string, colorInactive?: string); private _title; title: string; private _icon; icon: string; private _colorActive; colorActive: string; private _colorInactive; colorInactive: string; }