> For the complete documentation index, see [llms.txt](https://docs.dashcomb.com/dashcomb-help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dashcomb.com/dashcomb-help-center/tips-and-tricks/raberuwojavascriptde.md).

# ラベル文字をJavaScriptで設定

コンポーネントのラベルのラベル文字をJavaScriptで設定することができます。

<figure><img src="/files/E90wBhBoPNvQzSH8ov0K" alt=""><figcaption></figcaption></figure>

* ラベルコンポーネントをドラッグアンドドロップで設置します。
* オブジェクトに任意のオブジェクト名を入力（ここではtestとしている）します。
* ラベル文字に任意のテキストを入力（デフォルトではLabel）します。
* 設定したいラベル文字を本番処理にJavaScriptで入力します。\
  例として test.setValue('Hello World')とします。

<figure><img src="/files/G5G4t3uFpAO3h6hzBgHv" alt=""><figcaption></figcaption></figure>

実行ボタンを押下し「実行に成功しました」が表示され、ラベル文字が変更されます。
