defineCuboid関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Register <kyuubu-cuboid>, once. Where there is no browser, or the name is
already taken, it does nothing. A page that wants another name passes it.
インポート
import { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";
ほかのエクスポート元: @johnmorrisdotca/kyuubu/cuboid/element/define
定義
function defineCuboid(name?: string): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
name (省略可) | string | The custom-element name to register. |
例
import { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";
defineCuboid();
console.log(customElements.get("kyuubu-cuboid") !== undefined);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。