BushuElementOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Host data and callbacks. Attribute choices override the host's initial selection.
インポート
import type { BushuElementOptions } from "@johnmorrisdotca/bushu/element";
ほかのエクスポート元: @johnmorrisdotca/bushu/element/define
定義
type BushuElementOptions = Partial<BushuMountOptions>;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
radicals (省略可) | readonly Radical[] | undefined | The radicals: |
names (省略可) | ((key: string) => BushuNameEntry | null) | undefined | The Japanese name and English meaning of a radical by its key, or null: |
strokes (省略可) | ((kanji: string) => number | null) | undefined | The strokes in a kanji, or null: |
language (省略可) | BushuLanguage | undefined | The words: |
limit (省略可) | number | undefined | The most matches drawn at once; past it the picker says to choose another part. Default 120. |
chosen (省略可) | readonly string[] | undefined | Parts already chosen, by key or by shape; any the index does not have are dropped. |
kanji (省略可) | string | undefined | A kanji whose card is open. |
onChange (省略可) | ((detail: BushuEventDetail) => void) | undefined | |
onPick (省略可) | ((detail: BushuEventDetail) => void) | undefined |
例
import type { BushuElementOptions } from "@johnmorrisdotca/bushu/element";
const options: BushuElementOptions = {};
console.log(Object.keys(options).length); // 00出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。