Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

Reference · Native radical picker

mountBushufunction

Native interface, settings and words for host code.

Import it

import { mountBushu } from "@johnmorrisdotca/bushu/picker";

Definition

function mountBushu(host: HTMLElement, options: BushuMountOptions): BushuMount

Parameters

NameTypeDescription
hostHTMLElement

The HTMLElement that owns the native interface.

optionsBushuMountOptions

Native settings and callbacks for this mounted interface.

Returns

BushuMount

The native mounted handle, including controls and destroy() cleanup.

Examples

import { mountBushu } from "@johnmorrisdotca/bushu/picker";
const show = (host: HTMLElement, options: Parameters<typeof mountBushu>[1]) => mountBushu(host, options);
console.log(typeof show); // function
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.