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

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

Returns:

void