picker-controller.js 689B

12345678910111213141516171819202122232425262728293031
  1. import { Injectable } from '@angular/core';
  2. import { App } from '../app/app';
  3. import { Config } from '../../config/config';
  4. import { Picker } from './picker';
  5. /**
  6. * @hidden
  7. * @name PickerController
  8. * @description
  9. *
  10. */
  11. export class PickerController {
  12. constructor(_app, config) {
  13. this._app = _app;
  14. this.config = config;
  15. }
  16. /**
  17. * Open a picker.
  18. */
  19. create(opts = {}) {
  20. return new Picker(this._app, opts, this.config);
  21. }
  22. }
  23. PickerController.decorators = [
  24. { type: Injectable },
  25. ];
  26. /** @nocollapse */
  27. PickerController.ctorParameters = () => [
  28. { type: App, },
  29. { type: Config, },
  30. ];
  31. //# sourceMappingURL=picker-controller.js.map