Reference · Native radical picker
ensureBushuStylefunction
Puts the picker's style in the page once. Called by mountBushu; call it yourself to share one style with your own markup.
Import it
import { ensureBushuStyle } from "@johnmorrisdotca/bushu/picker";
Definition
function ensureBushuStyle(document?: Document): void
Parameters
| Name | Type | Description |
|---|---|---|
document (optional) | Document | The browser document whose head receives the native picker styles. |
Examples
import { ensureBushuStyle } from "@johnmorrisdotca/bushu/picker";
ensureBushuStyle(document);
console.log(document.getElementById("bushu-style")!==null);