MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / componentWillLoad

Method componentWillLoad

core/src/components/button/button.tsx:219–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 }
218
219 componentWillLoad() {
220 this.inToolbar = !!this.el.closest('ion-buttons');
221 this.inListHeader = !!this.el.closest('ion-list-header');
222 this.inItem = !!this.el.closest('ion-item') || !!this.el.closest('ion-item-divider');
223 this.inheritedAttributes = inheritAriaAttributes(this.el);
224 }
225
226 private get hasIconOnly() {
227 return !!this.el.querySelector('[slot="icon-only"]');

Callers

nothing calls this directly

Calls 1

inheritAriaAttributesFunction · 0.90

Tested by

no test coverage detected