123456789101112131415161718192021222324252627282930313233343536
  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 { Ion } from '../ion';
  12. /**
  13. * @hidden
  14. */
  15. var ToolbarBase = (function (_super) {
  16. __extends(ToolbarBase, _super);
  17. function ToolbarBase(config, elementRef, renderer) {
  18. return _super.call(this, config, elementRef, renderer, 'toolbar') || this;
  19. }
  20. /**
  21. * @hidden
  22. */
  23. ToolbarBase.prototype._setTitle = function (titleCmp) {
  24. this._title = titleCmp;
  25. };
  26. /**
  27. * @hidden
  28. * Returns the toolbar title text if it exists or an empty string
  29. */
  30. ToolbarBase.prototype.getTitleText = function () {
  31. return (this._title && this._title.getTitleText()) || '';
  32. };
  33. return ToolbarBase;
  34. }(Ion));
  35. export { ToolbarBase };
  36. //# sourceMappingURL=toolbar-base.js.map