Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Playable table

defineToranpuTablefunction

Registers <toranpu-table>, and the card, hand and pile elements, once. Nothing happens where there is no browser.

Import it

import { defineToranpuTable } from "@johnmorrisdotca/toranpu/table";

Also exported from: @johnmorrisdotca/toranpu/table/define

Definition

function defineToranpuTable(): void

Examples

import { defineToranpuTable } from "@johnmorrisdotca/toranpu/table";

defineToranpuTable();
console.log(customElements.get("toranpu-table") !== undefined);

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.