refactor(tabs): ion-tabbar can be used in standalone mode

This commit is contained in:
Manu Mtz.-Almeida
2018-10-09 14:27:02 -05:00
parent 25f6e28e9c
commit e3bbfd0b05
7 changed files with 54 additions and 141 deletions

View File

@ -4596,10 +4596,6 @@ export namespace Components {
}
interface IonTabs {
/**
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
*/
'color'?: Color;
'getRouteId': () => Promise<RouteID | undefined>;
/**
* Get the currently selected tab
@ -4610,10 +4606,6 @@ export namespace Components {
*/
'getTab': (tabOrIndex: string | number | HTMLIonTabElement) => Promise<HTMLIonTabElement | undefined>;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode': Mode;
/**
* A unique name for the tabs.
*/
'name'?: string;
@ -4627,35 +4619,11 @@ export namespace Components {
*/
'tabbarHidden': boolean;
/**
* If true, show the tab highlight bar under the selected tab.
*/
'tabbarHighlight'?: boolean;
/**
* Set the layout of the text and icon in the tabbar. Available options: `"icon-top"`, `"icon-start"`, `"icon-end"`, `"icon-bottom"`, `"icon-hide"`, `"label-hide"`.
*/
'tabbarLayout'?: TabbarLayout;
/**
* Set the position of the tabbar, relative to the content. Available options: `"top"`, `"bottom"`.
*/
'tabbarPlacement'?: TabbarPlacement;
/**
* If true, the tabs will be translucent. Note: In order to scroll content behind the tabs, the `fullscreen` attribute needs to be set on the content. Defaults to `false`.
*/
'translucent': boolean;
/**
* If true, the tabs will use the router and `selectedTab` will not do anything.
*/
'useRouter': boolean;
}
interface IonTabsAttributes extends StencilHTMLAttributes {
/**
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
*/
'color'?: Color;
/**
* The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: Mode;
/**
* A unique name for the tabs.
*/
@ -4681,22 +4649,6 @@ export namespace Components {
*/
'tabbarHidden'?: boolean;
/**
* If true, show the tab highlight bar under the selected tab.
*/
'tabbarHighlight'?: boolean;
/**
* Set the layout of the text and icon in the tabbar. Available options: `"icon-top"`, `"icon-start"`, `"icon-end"`, `"icon-bottom"`, `"icon-hide"`, `"label-hide"`.
*/
'tabbarLayout'?: TabbarLayout;
/**
* Set the position of the tabbar, relative to the content. Available options: `"top"`, `"bottom"`.
*/
'tabbarPlacement'?: TabbarPlacement;
/**
* If true, the tabs will be translucent. Note: In order to scroll content behind the tabs, the `fullscreen` attribute needs to be set on the content. Defaults to `false`.
*/
'translucent'?: boolean;
/**
* If true, the tabs will use the router and `selectedTab` will not do anything.
*/
'useRouter'?: boolean;