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