backdrop.js 875B

1234567891011121314151617181920212223242526272829303132
  1. import { Directive, ElementRef, Renderer } from '@angular/core';
  2. /**
  3. * @hidden
  4. */
  5. export class Backdrop {
  6. constructor(_elementRef, _renderer) {
  7. this._elementRef = _elementRef;
  8. this._renderer = _renderer;
  9. }
  10. getNativeElement() {
  11. return this._elementRef.nativeElement;
  12. }
  13. setElementClass(className, add) {
  14. this._renderer.setElementClass(this._elementRef.nativeElement, className, add);
  15. }
  16. }
  17. Backdrop.decorators = [
  18. { type: Directive, args: [{
  19. selector: 'ion-backdrop',
  20. host: {
  21. 'role': 'presentation',
  22. 'tappable': '',
  23. 'disable-activated': ''
  24. },
  25. },] },
  26. ];
  27. /** @nocollapse */
  28. Backdrop.ctorParameters = () => [
  29. { type: ElementRef, },
  30. { type: Renderer, },
  31. ];
  32. //# sourceMappingURL=backdrop.js.map