Reference · Tile and table elements
defineRackfunction
Register a rack under its standard tag or a host's own tag. Safe to call without a browser.
Import it
import { defineRack } from "@johnmorrisdotca/jarajara/element";
Definition
function defineRack(tag?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
tag (optional) | string | The custom tag name; omitted to use the package default. |
Examples
import { defineRack } from "@johnmorrisdotca/jarajara/element";
defineRack();
console.log(typeof defineRack); // functionfunctionWhat it prints (run when this page was built)