a zip code crypto-currency system good for red ONLY

menu-close.js 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. (function (factory) {
  2. if (typeof module === "object" && typeof module.exports === "object") {
  3. var v = factory(require, exports);
  4. if (v !== undefined) module.exports = v;
  5. }
  6. else if (typeof define === "function" && define.amd) {
  7. define(["require", "exports", "@angular/core", "../app/menu-controller"], factory);
  8. }
  9. })(function (require, exports) {
  10. "use strict";
  11. Object.defineProperty(exports, "__esModule", { value: true });
  12. var core_1 = require("@angular/core");
  13. var menu_controller_1 = require("../app/menu-controller");
  14. /**
  15. * @name MenuClose
  16. * @description
  17. * The `menuClose` directive can be placed on any button to close an open menu.
  18. *
  19. * @usage
  20. *
  21. * A simple `menuClose` button can be added using the following markup:
  22. *
  23. * ```html
  24. * <button ion-button menuClose>Close Menu</button>
  25. * ```
  26. *
  27. * To close a certain menu by its id or side, give the `menuClose`
  28. * directive a value.
  29. *
  30. * ```html
  31. * <button ion-button menuClose="left">Close Left Menu</button>
  32. * ```
  33. *
  34. * @demo /docs/demos/src/menu/
  35. * @see {@link /docs/components#menus Menu Component Docs}
  36. * @see {@link ../../menu/Menu Menu API Docs}
  37. */
  38. var MenuClose = (function () {
  39. function MenuClose(_menu) {
  40. this._menu = _menu;
  41. }
  42. /**
  43. * @hidden
  44. */
  45. MenuClose.prototype.close = function () {
  46. var menu = this._menu.get(this.menuClose);
  47. menu && menu.close();
  48. };
  49. MenuClose.decorators = [
  50. { type: core_1.Directive, args: [{
  51. selector: '[menuClose]'
  52. },] },
  53. ];
  54. /** @nocollapse */
  55. MenuClose.ctorParameters = function () { return [
  56. { type: menu_controller_1.MenuController, },
  57. ]; };
  58. MenuClose.propDecorators = {
  59. 'menuClose': [{ type: core_1.Input },],
  60. 'close': [{ type: core_1.HostListener, args: ['click',] },],
  61. };
  62. return MenuClose;
  63. }());
  64. exports.MenuClose = MenuClose;
  65. });
  66. //# sourceMappingURL=menu-close.js.map