Reference · Map, locator and quiz elements
defineMapfunction
Register <chizu-map> or a host's own tag; an existing definition is preserved.
Import it
import { defineMap } from "@johnmorrisdotca/chizu/element";
Also exported from: @johnmorrisdotca/chizu/element/define
Definition
function defineMap(tag?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The custom tag name; omitted to use the package default. |
Examples
import { defineMap } from "@johnmorrisdotca/chizu/element";
defineMap("article-map");
document.body.append(document.createElement("article-map"));