ensureBushuStyle関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Puts the picker's style in the page once. Called by mountBushu; call it yourself to share one style with your own markup.
インポート
import { ensureBushuStyle } from "@johnmorrisdotca/bushu/picker";
定義
function ensureBushuStyle(document?: Document): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
document (省略可) | Document | The browser document whose head receives the native picker styles. |
例
import { ensureBushuStyle } from "@johnmorrisdotca/bushu/picker";
ensureBushuStyle(document);
console.log(document.getElementById("bushu-style")!==null);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。