blockly > ToolboxCategory > parseCategoryDef_
Parses the non-contents parts of the category def.
Signature:
protected parseCategoryDef_(categoryDef: CategoryInfo): void;
Parameters
Parameter |
Type |
Description |
categoryDef |
CategoryInfo |
The information needed to create a category. |
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 `parseCategoryDef_` method is a protected method within the `ToolboxCategory` class used to parse the non-content aspects of a category definition."],["It takes a single parameter, `categoryDef`, which is of type `CategoryInfo` and contains the necessary information for category creation."],["This method is responsible for setting properties of the category like its name, color, custom, and whether it is expandable."],["The function does not return any value, modifying the category object directly instead."]]],[]]