Stay organized with collections Save and categorize content based on your preferences.

blockly > Flyout > initFlyoutButton_

Flyout.initFlyoutButton_() method

Initialize the given button: move it to the correct location, add listeners, etc.

Signature:

protected initFlyoutButton_(button: FlyoutButton, x: number, y: number): void;

Parameters

Parameter Type Description
button FlyoutButton The button to initialize and place.
x number The x position of the cursor during this layout pass.
y number The y position of the cursor during this layout pass.

Returns:

void