blockly > Toolbox > attachEvents_
Adds event listeners to the toolbox container div.
Signature:
protected attachEvents_(container: HTMLDivElement, contentsContainer: HTMLDivElement): void;
Parameters
Parameter |
Type |
Description |
container |
HTMLDivElement |
The HTML container for the toolbox. |
contentsContainer |
HTMLDivElement |
The HTML container for the contents of the toolbox. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `Toolbox.attachEvents_()` method is a protected method used to add event listeners to the toolbox's HTML container."],["This method takes two HTMLDivElement parameters: `container` for the main toolbox structure and `contentsContainer` for the elements within the toolbox."],["It does not return any value (void) after successfully attaching the event listeners."]]],[]]