mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
refactor(tabs): rename [tabTitle] -> [label]
This commit is contained in:
@ -23,7 +23,7 @@ export class BackButton {
|
||||
|
||||
/**
|
||||
* The text property is used to provide custom text for the back button while using the
|
||||
* default look-and-feel
|
||||
* default look-and-feel.
|
||||
*/
|
||||
@Prop() text: string|undefined;
|
||||
|
||||
@ -55,14 +55,14 @@ export class BackButton {
|
||||
|
||||
render() {
|
||||
const backButtonIcon = this.icon || this.config.get('backButtonIcon', 'arrow-back');
|
||||
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', this.mode === 'ios' ? 'Back' : '');
|
||||
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', 'Back');
|
||||
|
||||
return (
|
||||
<button
|
||||
class='back-button-inner'
|
||||
onClick={(ev) => this.onClick(ev)}>
|
||||
{ backButtonIcon && <ion-icon name={backButtonIcon}/> }
|
||||
{ backButtonText && <span class='button-text'>{backButtonText}</span> }
|
||||
{ this.mode === 'ios' && backButtonText && <span class='button-text'>{backButtonText}</span> }
|
||||
{ this.mode === 'md' && <ion-ripple-effect useTapClick={true} /> }
|
||||
</button>
|
||||
);
|
||||
|
||||
@ -71,7 +71,7 @@ For more information, see [Platform Styles](/docs/theming/platform-specific-styl
|
||||
|
||||
|
||||
The text property is used to provide custom text for the back button while using the
|
||||
default look-and-feel
|
||||
default look-and-feel.
|
||||
|
||||
|
||||
## Attributes
|
||||
@ -100,7 +100,7 @@ For more information, see [Platform Styles](/docs/theming/platform-specific-styl
|
||||
|
||||
|
||||
The text property is used to provide custom text for the back button while using the
|
||||
default look-and-feel
|
||||
default look-and-feel.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user