mountKotobafunction
Put a word game into container, and deal the first round.
Import it
import { mountKotoba } from "@johnmorrisdotca/kotoba/play";
Definition
function mountKotoba(container: HTMLElement, options?: KotobaPlayOptions): KotobaPlay
Parameters
| Name | Type | Description |
|---|---|---|
container | HTMLElement | The HTMLElement that owns the native interface. |
options (optional) | KotobaPlayOptions | Native settings and callbacks for this mounted interface. |
Returns
KotobaPlay
The native mounted handle, including controls and destroy() cleanup.
Examples
import { mountKotoba } from "@johnmorrisdotca/kotoba/play";
const show = (host: HTMLElement, options: Parameters<typeof mountKotoba>[1]) => mountKotoba(host, options);
console.log(typeof show); // functionfunctionWhat it prints (run when this page was built)