SuidoElementOptionstype
Host callbacks; the same actions also emit native events.
Import it
import type { SuidoElementOptions } from "@johnmorrisdotca/suido/element";
Also exported from: @johnmorrisdotca/suido/element/define
Definition
type SuidoElementOptions = Pick<SuidoMountOptions, "onChange" | "onTurn" | "onHint" | "onTurning" | "onSolve">;
Members
| Name | Type | Description |
|---|---|---|
onChange (optional) | ((detail: SuidoEventDetail) => void) | undefined | |
onTurn (optional) | ((detail: SuidoEventDetail) => void) | undefined | |
onHint (optional) | ((detail: SuidoEventDetail) => void) | undefined | |
onTurning (optional) | ((turning: SuidoTurning) => void) | undefined | Told when the way a tap turns is changed, by the board's own button or by |
onSolve (optional) | ((detail: SuidoEventDetail) => void) | undefined |
Examples
import type { SuidoElementOptions } from "@johnmorrisdotca/suido/element";
const options: SuidoElementOptions = {};
console.log(Object.keys(options).length); // 00What it prints (run when this page was built)