blockly > ToolboxCategory > getColour_
ToolboxCategory.getColour_() method
Gets either the colour or the style for a category.
Signature:
protected getColour_(categoryDef: CategoryInfo): string;
Parameters
Parameter | Type | Description |
---|---|---|
categoryDef | CategoryInfo | The object holding information on the category. |
Returns:
string
The hex colour for the category.