Reference · Native radical picker
BushuEventDetailtype
What a picker tells of itself, in bushu-change and bushu-pick events and to the callbacks.
Import it
import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";
Definition
type BushuEventDetail = {
chosen: string[];
matches: number;
kanji: string | null;
parts: string[];
};
Members
| Name | Type | Description |
|---|---|---|
chosen | string[] | The parts chosen, as RADKFILE's keys, in the grid's order. |
matches | number | How many kanji hold all of them. |
kanji | string | null | The kanji whose card is open, or null. |
parts | string[] | The parts of that kanji, as RADKFILE's keys, fewest strokes first. |
Examples
import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";
const value: BushuEventDetail = {chosen:["汁"],matches:2,kanji:null,parts:[]};
console.log(value);{ chosen: [ '汁' ], matches: 2, kanji: null, parts: [] }What it prints (run when this page was built)