refactor(tabs): rename [tabTitle] -> [label]

This commit is contained in:
Manu Mtz.-Almeida
2018-04-03 13:37:07 +02:00
parent 1f78390c84
commit ae2cae635d
8 changed files with 110 additions and 112 deletions

View File

@ -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>
);

View File

@ -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.