-
createElement<K
extends keyof
HTMLElementTagNameMap>( tagName:
K, options?:
ElementCreationOptions,):
HTMLElementTagNameMap[K]
Type Parameters
-
K extends keyof
HTMLElementTagNameMap
Parameters
-
tagName:
K
-
Optional
options:
ElementCreationOptions
Returns HTMLElementTagNameMap[K]
-
createElement<K
extends keyof
HTMLElementDeprecatedTagNameMap>( tagName:
K, options?:
ElementCreationOptions,):
HTMLElementDeprecatedTagNameMap[K]
Type Parameters
-
K extends keyof
HTMLElementDeprecatedTagNameMap
Parameters
-
tagName:
K
-
Optional
options:
ElementCreationOptions
Returns HTMLElementDeprecatedTagNameMap[K]
-
createElement(tagName: string, options?:
ElementCreationOptions): HTMLElement
Parameters
-
tagName:
string
-
Optional
options:
ElementCreationOptions
Returns HTMLElement
Creates an instance of the element for the specified tag.