blockly > ToolboxItem > getClickTarget

ToolboxItem.getClickTarget() method

Gets the HTML element that is clickable. The parent toolbox element receives clicks. The parent toolbox will add an ID to this element so it can pass the onClick event to the correct toolboxItem.


getClickTarget(): Element | null;


Element | null

The HTML element that receives clicks, or null if this item should not receive clicks.