Skip to main content

Home > blockly > FieldImage > setOnClickHandler

FieldImage.setOnClickHandler() method

Set the function that is called when this image is clicked.

Signature:

setOnClickHandler(func: ((p1: FieldImage) => void) | null): void;

Parameters

ParameterTypeDescription
func((p1: FieldImage) => void) | nullThe function that is called when the image is clicked, or null to remove.

Returns:

void