調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >FieldDropdown >doClassValidation_
FieldDropdown.doClassValidation_() メソッド
入力値は、言語に依存しない有効なオプションであることを確認します。
署名:
protected doClassValidation_(newValue: string): string | null | undefined;
パラメータ
パラメータ |
型 |
説明 |
newValue |
文字列 |
入力値。 |
戻り値:
文字列 |null |未定義
有効な言語中立オプション。無効な場合は null。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[null,null,["最終更新日 2024-09-12 UTC。"],[[["`doClassValidation_` is a protected method of the `FieldDropdown` class in Blockly, used to validate user input against the dropdown options."],["This method takes a string input representing the user's selected value and returns a validated, language-neutral option or null if the input is invalid."],["The primary purpose is to ensure that the chosen value is a valid option from the available choices in the dropdown."]]],[]]