refactor(select): pass config to overlay

pass config to overlay
This commit is contained in:
Dan Bucholtz
2017-03-02 15:00:16 -06:00
parent 7880d44c07
commit 2ef6d0ca75

View File

@ -213,7 +213,7 @@ export class Select extends Ion implements AfterContentInit, ControlValueAccesso
constructor( constructor(
private _app: App, private _app: App,
private _form: Form, private _form: Form,
config: Config, public config: Config,
elementRef: ElementRef, elementRef: ElementRef,
renderer: Renderer, renderer: Renderer,
@Optional() public _item: Item, @Optional() public _item: Item,
@ -306,7 +306,7 @@ export class Select extends Ion implements AfterContentInit, ControlValueAccesso
selectCssClass += selectOptions.cssClass ? ' ' + selectOptions.cssClass : ''; selectCssClass += selectOptions.cssClass ? ' ' + selectOptions.cssClass : '';
selectOptions.cssClass = selectCssClass; selectOptions.cssClass = selectCssClass;
overlay = new ActionSheet(this._app, selectOptions); overlay = new ActionSheet(this._app, selectOptions, this.config);
} else { } else {
// default to use the alert interface // default to use the alert interface
@ -334,7 +334,7 @@ export class Select extends Ion implements AfterContentInit, ControlValueAccesso
var selectCssClass = 'select-alert'; var selectCssClass = 'select-alert';
// create the alert instance from our built up selectOptions // create the alert instance from our built up selectOptions
overlay = new Alert(this._app, selectOptions); overlay = new Alert(this._app, selectOptions, this.config);
if (this._multi) { if (this._multi) {
// use checkboxes // use checkboxes