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

Function inheritAriaAttributes

core/src/utils/helpers.ts:185–191  ·  view source on GitHub ↗
(el: HTMLElement, ignoreList?: string[])

Source from the content-addressed store, hash-verified

183 * Use this in instances where we manually specify aria attributes on the `<Host>` element.
184 */
185export const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {
186 let attributesToInherit = ariaAttributes;
187 if (ignoreList && ignoreList.length > 0) {
188 attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));
189 }
190 return inheritAttributes(el, attributesToInherit);
191};
192
193export const addEventListener = (el: any, eventName: string, callback: any, opts?: any) => {
194 return el.addEventListener(eventName, callback, opts);

Callers 15

componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90
componentWillLoadMethod · 0.90

Calls 1

inheritAttributesFunction · 0.85

Tested by

no test coverage detected