defineCuboidfunction
Register <kyuubu-cuboid>, once. Where there is no browser, or the name is
already taken, it does nothing. A page that wants another name passes it.
Import it
import { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";
Also exported from: @johnmorrisdotca/kyuubu/cuboid/element/define
Definition
function defineCuboid(name?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
name (optional) | string | The custom-element name to register. |
Examples
import { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";
defineCuboid();
console.log(customElements.get("kyuubu-cuboid") !== undefined);