Reference · Radical picker element
definePickerfunction
Defines the default picker or a subclass under a custom name. Safe on a server.
Import it
import { definePicker } from "@johnmorrisdotca/bushu/element";
Also exported from: @johnmorrisdotca/bushu/element/define
Definition
function definePicker(tagName?: string, registry?: CustomElementRegistry | undefined): void
Parameters
| Name | Type | Description |
|---|---|---|
tagName (optional) | string | The custom tag name; omitted to use the package default. |
registry (optional) | CustomElementRegistry | undefined | The custom-element registry; omitted outside a browser. |
Examples
import { definePicker } from "@johnmorrisdotca/bushu/element";
definePicker();
console.log(typeof definePicker); // functionfunctionWhat it prints (run when this page was built)