toolbar-base.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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", "../ion"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var ion_1 = require("../ion");
  23. /**
  24. * @hidden
  25. */
  26. var ToolbarBase = (function (_super) {
  27. __extends(ToolbarBase, _super);
  28. function ToolbarBase(config, elementRef, renderer) {
  29. return _super.call(this, config, elementRef, renderer, 'toolbar') || this;
  30. }
  31. /**
  32. * @hidden
  33. */
  34. ToolbarBase.prototype._setTitle = function (titleCmp) {
  35. this._title = titleCmp;
  36. };
  37. /**
  38. * @hidden
  39. * Returns the toolbar title text if it exists or an empty string
  40. */
  41. ToolbarBase.prototype.getTitleText = function () {
  42. return (this._title && this._title.getTitleText()) || '';
  43. };
  44. return ToolbarBase;
  45. }(ion_1.Ion));
  46. exports.ToolbarBase = ToolbarBase;
  47. });
  48. //# sourceMappingURL=toolbar-base.js.map