toolbar-base.js 529B

1234567891011121314151617181920212223
  1. import { Ion } from '../ion';
  2. /**
  3. * @hidden
  4. */
  5. export class ToolbarBase extends Ion {
  6. constructor(config, elementRef, renderer) {
  7. super(config, elementRef, renderer, 'toolbar');
  8. }
  9. /**
  10. * @hidden
  11. */
  12. _setTitle(titleCmp) {
  13. this._title = titleCmp;
  14. }
  15. /**
  16. * @hidden
  17. * Returns the toolbar title text if it exists or an empty string
  18. */
  19. getTitleText() {
  20. return (this._title && this._title.getTitleText()) || '';
  21. }
  22. }
  23. //# sourceMappingURL=toolbar-base.js.map