blockly > CollapsibleToolboxCategory > setExpanded
CollapsibleToolboxCategory.setExpanded() method
Opens or closes the current category and the associated flyout.
Signature:
setExpanded(isExpanded: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
isExpanded | boolean | True to expand the category, false to close. |
Returns:
void