Namespace: VariablesDynamic

Property

CATEGORY_NAME

constant   static

string

String for use in the "custom" attribute of a category in toolbox XML. This string indicates that the category should be dynamically populated with variable blocks. See also Blockly.Variables.CATEGORY_NAME and Blockly.Procedures.CATEGORY_NAME.

Methods

flyoutCategory

static

flyoutCategory(workspace) returns Array of non-null Element

Construct the elements (blocks and button) required by the flyout for the variable category.

Parameter

workspace

Blockly.WorkspaceSvg

The workspace containing variables.

Value must not be null.

Returns

non-null Array of non-null Element Array of XML elements.

flyoutCategoryBlocks

static

flyoutCategoryBlocks(workspace) returns Array of non-null Element

Construct the blocks required by the flyout for the variable category.

Parameter

workspace

Blockly.Workspace

The workspace containing variables.

Value must not be null.

Returns

non-null Array of non-null Element Array of XML block elements.