mountSugorokufunction
Mount a board into host.
Import it
import { mountSugoroku } from "@johnmorrisdotca/sugoroku/play";
Definition
function mountSugoroku(host: HTMLElement, options?: SugorokuMountOptions): SugorokuMount
Parameters
| Name | Type | Description |
|---|---|---|
host | HTMLElement | The HTMLElement that owns the native interface. |
options (optional) | SugorokuMountOptions | Native settings and callbacks for this mounted interface. |
Returns
SugorokuMount
The native mounted handle, including controls and destroy() cleanup.
Examples
import { mountSugoroku } from "@johnmorrisdotca/sugoroku/play";
const show = (host: HTMLElement, options: Parameters<typeof mountSugoroku>[1]) => mountSugoroku(host, options);
console.log(typeof show); // functionfunctionWhat it prints (run when this page was built)