MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setOverlayId

Function setOverlayId

core/src/utils/overlays.ts:115–120  ·  view source on GitHub ↗
(el: T)

Source from the content-addressed store, hash-verified

113 * Used to track unique instances of an overlay element.
114 */
115export const setOverlayId = <T extends HTMLIonOverlayElement>(el: T) => {
116 if (!el.hasAttribute('id')) {
117 el.id = `ion-overlay-${++lastId}`;
118 }
119 return el.id;
120};
121
122export const createOverlay = <T extends HTMLIonOverlayElement>(
123 tagName: string,

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected