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