blockly > FieldLabelSerializable > (コンストラクタ)

FieldLabelSerializable.(constructor)

FieldLabelSerializable クラスの新しいインスタンスを作成します。

署名:

constructor(value?: string, textClass?: string, config?: FieldLabelConfig);

パラメータ

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