mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
27 lines
520 B
TypeScript
27 lines
520 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
import { App } from '../app/app';
|
|
import { Config } from '../../config/config';
|
|
import { Picker } from './picker';
|
|
import { PickerOptions } from './picker-options';
|
|
|
|
/**
|
|
* @hidden
|
|
* @name PickerController
|
|
* @description
|
|
*
|
|
*/
|
|
@Injectable()
|
|
export class PickerController {
|
|
|
|
constructor(private _app: App, public config: Config) { }
|
|
|
|
/**
|
|
* Open a picker.
|
|
*/
|
|
create(opts: PickerOptions = {}): Picker {
|
|
return new Picker(this._app, opts, this.config);
|
|
}
|
|
|
|
}
|