blockly > FieldLabel > doClassValidation_

FieldLabel.doClassValidation_() 方法

確保輸入值轉換為有效字串。

Signature:

protected doClassValidation_(newValue?: any): string | null;

參數

參數 類型 說明
newValue 不限 (選用) 輸入值。

傳回:

字串 | 空值

有效字串;如果無效,則傳回空值。