Reference · Embedded roller and die
defineRollerfunction
Register the element, as <korokoro-roller> unless another tag is asked
for. Safe to call more than once, and does nothing where there are no
custom elements (on a server).
Import it
import { defineRoller } from "@johnmorrisdotca/korokoro/element";
Also exported from: @johnmorrisdotca/korokoro/element/define
Definition
function defineRoller(tag?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The custom tag name; omitted to use the package default. |
Examples
import { defineRoller } from "@johnmorrisdotca/korokoro/element";
defineRoller();
console.log(typeof defineRoller); // functionfunctionWhat it prints (run when this page was built)