ブロックする >FieldLabelSerializable >(コンストラクタ)
FieldLabelSerializable.(constructor)
FieldLabelSerializable クラスの新しいインスタンスを作成します。
署名:
constructor(value?: string, textClass?: string, config?: FieldLabelConfig);
パラメータ
| パラメータ | 型 | 説明 |
|---|---|---|
| 値 | 文字列 | (省略可)フィールドの初期値。文字列にキャストする必要があります。null または未定義の場合、デフォルトは空の文字列になります。 |
| textClass | 文字列 | (省略可)フィールドのテキストの省略可能な CSS クラス。 |
| config | FieldLabelConfig | (省略可)フィールドの構成に使用するオプションのマップ。このパラメータでサポートされているプロパティの一覧については、[フィールド作成のドキュメント]https://developers.google.com/blockly/guides/create-custom-blocks/fields/built-in-fields/label-serializable#creation をご覧ください。 |