note.js 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. (function (factory) {
  12. if (typeof module === "object" && typeof module.exports === "object") {
  13. var v = factory(require, exports);
  14. if (v !== undefined) module.exports = v;
  15. }
  16. else if (typeof define === "function" && define.amd) {
  17. define(["require", "exports", "@angular/core", "../../config/config", "../ion"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var core_1 = require("@angular/core");
  23. var config_1 = require("../../config/config");
  24. var ion_1 = require("../ion");
  25. /**
  26. * @name Note
  27. * @module ionic
  28. * @description
  29. * A note is detailed item in an ion-item. It creates greyed out element that can be on the left or right side of an item.
  30. * @usage
  31. *
  32. * ```html
  33. * <ion-content>
  34. * <ion-list>
  35. * <ion-item>
  36. * <ion-note item-start>
  37. * Left Note
  38. * </ion-note>
  39. * My Item
  40. * <ion-note item-end>
  41. * Right Note
  42. * </ion-note>
  43. * </ion-item>
  44. * </ion-list>
  45. * </ion-content>
  46. *```
  47. * {@link /docs/api/components/api/components/item/item ion-item}
  48. */
  49. var Note = (function (_super) {
  50. __extends(Note, _super);
  51. function Note(config, elementRef, renderer) {
  52. return _super.call(this, config, elementRef, renderer, 'note') || this;
  53. }
  54. Note.decorators = [
  55. { type: core_1.Directive, args: [{
  56. selector: 'ion-note'
  57. },] },
  58. ];
  59. /** @nocollapse */
  60. Note.ctorParameters = function () { return [
  61. { type: config_1.Config, },
  62. { type: core_1.ElementRef, },
  63. { type: core_1.Renderer, },
  64. ]; };
  65. return Note;
  66. }(ion_1.Ion));
  67. exports.Note = Note;
  68. });
  69. //# sourceMappingURL=note.js.map