Skip to main content

blockly > FieldVariable > dropdownCreate

FieldVariable.dropdownCreate() method

Return a sorted list of variable names for variable dropdown menus. Include a special option at the end for creating a new variable name.

Signature:

static dropdownCreate(this: FieldVariable): MenuOption[];

Parameters

Parameter

Type

Description

this

FieldVariable

Returns:

MenuOption[]

Array of variable names/id tuples.