mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
refactor(select): pass config to overlay
pass config to overlay
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user