ensureSugorokuPlayStylefunction
Put the style in the page once: in the document's head, or in the shadow root the host is in.
Import it
import { ensureSugorokuPlayStyle } from "@johnmorrisdotca/sugoroku/play";
Definition
function ensureSugorokuPlayStyle(host: Element): void
Parameters
| Name | Type | Description |
|---|---|---|
host | Element | The DOM element receiving the native board or scoped styles. |
Examples
import { ensureSugorokuPlayStyle } from "@johnmorrisdotca/sugoroku/play";
const host = document.createElement("div");
ensureSugorokuPlayStyle(host);
console.log(host.tagName);