Skip to content

Setting.setErrorMessage method

Setting › setErrorMessage

Official

Show a persistent validation error message below the setting. Pass an empty string or null to clear it. Adds the is-invalid class to the setting row when a message is present.

Signature:

setErrorMessage(message: string | null): this

Parameters:

Parameter Type Description
message string | null

Returns: this

Since: 1.13.0