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

ensureBushuStylefunction

Puts the picker's style in the page once. Called by mountBushu; call it yourself to share one style with your own markup.

Import it

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

Definition

function ensureBushuStyle(document?: Document): void

Parameters

NameTypeDescription
document (optional)Document

The browser document whose head receives the native picker styles.

Examples

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

ensureBushuStyle(document);
console.log(document.getElementById("bushu-style")!==null);

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