Skip to main content

Home > blockly > FieldImage > doClassValidation_

FieldImage.doClassValidation_() method

Ensure that the input value (the source URL) is a string.

Signature:

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

Parameters

ParameterTypeDescription
newValueany(Optional) The input value.

Returns:

string | null

A string, or null if invalid.