defineBoardfunction
Defines the default board or a subclass under a custom tag. Safe on a server.
Import it
import { defineBoard } from "@johnmorrisdotca/narabe/element";
Also exported from: @johnmorrisdotca/narabe/element/define
Definition
function defineBoard(tagName?: string, registry?: CustomElementRegistry | undefined): void
Parameters
| Name | Type | Description |
|---|---|---|
tagName (optional) | string | The tag to define; narabe-board by default. |
registry (optional) | CustomElementRegistry | undefined | The page's registry, or undefined on a server. |
Examples
import { defineBoard } from "@johnmorrisdotca/narabe/element";
defineBoard();
console.log(typeof defineBoard);functionWhat it prints (run when this page was built)