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