Skip to main content

Home > blockly > ToolboxCategory > getColour_

ToolboxCategory.getColour_() method

Gets either the colour or the style for a category.

Signature:

protected getColour_(categoryDef: CategoryInfo): string;

Parameters

ParameterTypeDescription
categoryDefCategoryInfoThe object holding information on the category.

Returns:

string

The hex colour for the category.