本文へ移動

Bushu部首

漢字に見える部品を選び、全てを含む漢字を探し、ページに部首選択を追加できます。

「部首」は、漢字を分類する部分です。 名前について(英語)

目次

リファレンス · 部首選択の要素

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: RADKFILE.radicals from @johnmorrisdotca/bushu/radkfile.

names (省略可)((key: string) => BushuNameEntry | null) | undefined

The Japanese name and English meaning of a radical by its key, or null: radicalNameEntry from @johnmorrisdotca/bushu/names. Without it no names are shown.

strokes (省略可)((kanji: string) => number | null) | undefined

The strokes in a kanji, or null: strokesOf from @johnmorrisdotca/bushu/strokes. Without it the matches are in the dictionary's order.

language (省略可)BushuLanguage | undefined

The words: en or ja. Default the host's (or the page's) lang.

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); // 0
0

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/bushu 1.1.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。