mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
docs(breaking): update breaking changes to include tabs properties
closes #14745
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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 */
|
||||
|
||||
@ -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>`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user