toolbar-footer.js 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. import { Directive, ElementRef, Optional, Renderer } from '@angular/core';
  12. import { Config } from '../../config/config';
  13. import { Ion } from '../ion';
  14. import { ViewController } from '../../navigation/view-controller';
  15. /**
  16. * @name Footer
  17. * @description
  18. * Footer is a root component of a page that sits at the bottom of the page.
  19. * Footer can be a wrapper for `ion-toolbar` to make sure the content area is sized correctly.
  20. *
  21. * @usage
  22. *
  23. * ```html
  24. * <ion-content></ion-content>
  25. *
  26. * <ion-footer>
  27. * <ion-toolbar>
  28. * <ion-title>Footer</ion-title>
  29. * </ion-toolbar>
  30. * </ion-footer>
  31. * ```
  32. *
  33. */
  34. var Footer = (function (_super) {
  35. __extends(Footer, _super);
  36. function Footer(config, elementRef, renderer, viewCtrl) {
  37. var _this = _super.call(this, config, elementRef, renderer, 'footer') || this;
  38. viewCtrl && viewCtrl._setFooter(_this);
  39. return _this;
  40. }
  41. Footer.decorators = [
  42. { type: Directive, args: [{
  43. selector: 'ion-footer'
  44. },] },
  45. ];
  46. /** @nocollapse */
  47. Footer.ctorParameters = function () { return [
  48. { type: Config, },
  49. { type: ElementRef, },
  50. { type: Renderer, },
  51. { type: ViewController, decorators: [{ type: Optional },] },
  52. ]; };
  53. return Footer;
  54. }(Ion));
  55. export { Footer };
  56. //# sourceMappingURL=toolbar-footer.js.map