fix(config): set the properties for each mode and add defaults

closes #6132
This commit is contained in:
Brandy Carney
2016-06-01 18:16:12 -04:00
parent 78ffe0e801
commit 7def98c620
2 changed files with 7 additions and 2 deletions

View File

@@ -232,8 +232,8 @@ export class Tabs extends Ion {
super(_elementRef);
this.parent = parent;
this.id = ++tabIds;
this.subPages = _config.getBoolean('tabSubPages');
this._useHighlight = _config.getBoolean('tabbarHighlight');
this.subPages = _config.getBoolean('tabSubPages', false);
this._useHighlight = _config.getBoolean('tabbarHighlight', false);
this._sbPadding = _config.getBoolean('statusbarPadding', false);
if (parent) {

View File

@@ -37,8 +37,11 @@ Config.setModeConfig('ios', {
spinner: 'ios',
tabbarHighlight: false,
tabbarPlacement: 'bottom',
tabSubPages: false,
toastEnter: 'toast-slide-in',
toastLeave: 'toast-slide-out',
});
@@ -72,6 +75,7 @@ Config.setModeConfig('md', {
pickerEnter: 'picker-slide-in',
pickerLeave: 'picker-slide-out',
pickerRotateFactor: 0,
popoverEnter: 'popover-md-pop-in',
popoverLeave: 'popover-md-pop-out',
@@ -116,6 +120,7 @@ Config.setModeConfig('wp', {
pickerEnter: 'picker-slide-in',
pickerLeave: 'picker-slide-out',
pickerRotateFactor: 0,
popoverEnter: 'popover-md-pop-in',
popoverLeave: 'popover-md-pop-out',