mountSuidofunction
Draw a board into host and play it. Returns the handle that drives it, or null for a code that is no board.
Import it
import { mountSuido } from "@johnmorrisdotca/suido/play";
Definition
function mountSuido(host: HTMLElement, options: SuidoMountOptions): SuidoMount | null
Parameters
| Name | Type | Description |
|---|---|---|
host | HTMLElement | The HTMLElement that owns the native interface. |
options | SuidoMountOptions | Native settings and callbacks for this mounted interface. |
Returns
SuidoMount | null
The native mounted handle, or null for unsupported settings.
Examples
import { mountSuido } from "@johnmorrisdotca/suido/play";
const show = (host: HTMLElement, options: Parameters<typeof mountSuido>[1]) => mountSuido(host, options);
console.log(typeof show); // functionfunctionWhat it prints (run when this page was built)