defineLocator関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Register <chizu-locator> or a host's own tag; an existing definition is preserved.
インポート
import { defineLocator } from "@johnmorrisdotca/chizu/element";
ほかのエクスポート元: @johnmorrisdotca/chizu/element/define
定義
function defineLocator(tag?: string): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
tag (省略可) | string | The custom tag name; omitted to use the package default. |
例
import { defineLocator } from "@johnmorrisdotca/chizu/element";
defineLocator("article-locator");
document.body.append(document.createElement("article-locator"));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。