docs(breaking): update breaking changes to include tabs properties

closes #14745
This commit is contained in:
Brandy Carney
2018-07-10 14:41:55 -04:00
parent 45583bcebb
commit 4956d6d305
5 changed files with 100 additions and 46 deletions

View File

@ -20,7 +20,7 @@ export class List {
@Prop() lines?: 'full' | 'inset' | 'none';
/**
* If true, the list will have margin around it and rounded corners. Defaults to `"false"`.
* If true, the list will have margin around it and rounded corners. Defaults to `false`.
*/
@Prop() inset = false;

View File

@ -20,7 +20,9 @@ export class TabButton {
@State() keyFocus = false;
/** If the tab is selected or not */
/**
* If true, the tab button will be selected. Defaults to `false`.
*/
@Prop() selected = false;
/** The tab component for the button */

View File

@ -10,17 +10,19 @@ export class Tab {
private loaded = false;
@Element() el!: HTMLIonTabElement;
/** If the tab is active or not */
/**
* If true, sets the tab as the active tab.
*/
@Prop({ mutable: true }) active = false;
/** hidden */
@Prop() btnId?: string;
/** @hidden */
/** hidden */
@Prop() delegate?: FrameworkDelegate;
/**
* The title of the tab.
* The label of the tab.
*/
@Prop() label?: string;
@ -81,7 +83,6 @@ export class Tab {
*/
@Prop() tabsHideOnSubPages = false;
/**
* Emitted when the current tab is selected.
*/
@ -93,7 +94,7 @@ export class Tab {
console.error('You can not use a lazy-loaded component in a tab and inlined content at the same time.' +
`- Remove the component attribute in: <ion-tab component="${this.component}">` +
` or` +
`- Remove the embeded content inside the ion-tab: <ion-tab></ion-tab>`);
`- Remove the embedded content inside the ion-tab: <ion-tab></ion-tab>`);
}
}
}