- createDiv<T>(__namedParameters): HTMLElementTagNameMap[T]
Type Parameters
T extends keyof HTMLElementTagNameMap = "div"
Parameters
__namedParameters: Partial<InnerHTML> & {
addToBody?: boolean;
classList?: string[];
elementTag?: T;
id?: string;
}
Returns HTMLElementTagNameMap[T]
Creates a HTML div element.