blockly > ToolboxCategory > parseContents_
ToolboxCategory.parseContents_() method
Parses the contents array depending on if the category is a dynamic category, or if its contents are meant to be shown in the flyout.
Signature:
protected parseContents_(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 `ToolboxCategory.parseContents_()` method is responsible for parsing the contents of a toolbox category based on its type (dynamic or flyout)."],["This method utilizes a `CategoryInfo` object containing necessary details to correctly interpret and display the category's contents."],["The parsing process differentiates between dynamic categories and those intended for display within the flyout, ensuring appropriate rendering of each."]]],[]]