Interface: IToolbox

Properties

clearSelection

Unhighlight any previously specified option.

Returns

void 

dispose

Dispose of this toolbox.

Returns

void 

getFlyout

Get the toolbox flyout.

Returns

Blockly.Flyout The toolbox flyout.

getHeight

Get the height of the toolbox.

Returns

number The width of the toolbox.

getWidth

Get the width of the toolbox.

Returns

number The width of the toolbox.

init

Initializes the toolbox.

Returns

void 

position

Move the toolbox to the edge.

Returns

void 

refreshSelection

Update the flyout's contents without closing it. Should be used in response to a change in one of the dynamic categories, such as variables or procedures.

Returns

void 

refreshTheme

Updates the category colours and background colour of selected categories.

Returns

void 

render

Fill the toolbox with categories and blocks.

Parameter

toolboxDef

Array of Blockly.utils.toolbox.Toolbox

Array holding objects containing information on the contents of the toolbox.

selectFirstCategory

Select the first toolbox category if no category is selected.

Returns

void 

setVisible

Toggles the visibility of the toolbox.

Parameter

isVisible

boolean

True if the toolbox should be visible.