mountMoveList関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A list of moves drawn in an element.
インポート
import { mountMoveList } from "@johnmorrisdotca/kyuubu";
定義
function mountMoveList(host: HTMLElement, options: MoveListOptions): MoveListHandle
引数
| 名前 | 型 | 説明 |
|---|---|---|
host | HTMLElement | The DOM element that receives the view and controls. |
options | MoveListOptions | Options for this call; omitted fields retain their documented defaults. |
戻り値
MoveListHandle
A list of moves drawn in an element.
例
import { mountMoveList } from "@johnmorrisdotca/kyuubu";
const host = document.createElement("div");
document.body.append(host);
const list = mountMoveList(host, { groups: [{ label: "Solve", items: ["R", "R'"] }], current: 0 });
console.log(list.element.tagName);
// Call list.destroy() when removing the list.この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。