blockly > ToolboxCategory > createRowContentsContainer_
ToolboxCategory.createRowContentsContainer_() method
Creates the container for the label and icon. This is necessary so we can set all subcategory pointer events to none.
Signature:
protected createRowContentsContainer_(): HTMLDivElement;
Returns:
HTMLDivElement
The div that holds the icon and the label.
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 `createRowContentsContainer_` method generates a container specifically for the category's label and icon."],["This container is essential to manage pointer events, particularly disabling them for subcategories."],["The method ultimately returns an HTML div element that houses both the icon and label of the category."]]],["The `createRowContentsContainer_()` method, part of the `ToolboxCategory` class, generates a container element. This container, a `HTMLDivElement`, is designed to hold both the label and icon of a toolbox category. Its primary purpose is to enable the setting of pointer events to \"none\" for all subcategory elements, effectively controlling user interaction. The method returns the created `HTMLDivElement`.\n"]]