Skip to content
On this page

createEl

ts
function createEl<K extends keyof HTMLElementTagNameMap>(tag: K, o?: DomElementInfo | string, callback?: (el: HTMLElementTagNameMap[K]) => void): HTMLElementTagNameMap[K];

Parameters

ParameterDescription
tag
o
callback