ensureSuidoPlayStyle関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Put the style in the page once: in the document's head, or in the shadow root the host is in.
インポート
import { ensureSuidoPlayStyle } from "@johnmorrisdotca/suido/play";
定義
function ensureSuidoPlayStyle(host: Element): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
host | Element | The DOM host for the scoped native board styles. |
例
import { ensureSuidoPlayStyle } from "@johnmorrisdotca/suido/play";
const host = document.createElement("div");
document.body.append(host);
ensureSuidoPlayStyle(host);
console.log(host.tagName);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。