リファレンス
選択ツールの要素
import { … } from "@johnmorrisdotca/tane/element";
最小化と gzip 圧縮をしたサイズは 4.3 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
definePicker | 関数 | Defines the picker or a subclass under a host's tag; safe on a server. |
parsePickerItems | 関数 | Reads a bounded list, one item per line or a JSON string array. |
TANE_EMBED_OPTION_KEYS | 定数 | Actual host option keys, checked by the builder. |
TanePickDetail | 型 | Native event detail: list indices instead of names or other item text. |
TanePicker | クラス | A seeded item picker and group maker, using the native random and draw functions. |
TanePickerMode | 型 | The picker modes: sample without replacement, shuffled list or balanced groups. |
TanePickerOptions | 型 | Host data, a native random stream, optional weights and a result callback. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。