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

blockly > FlyoutButton

FlyoutButton class

Class for a button or label in the flyout.

Signature:

export declare class FlyoutButton 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the FlyoutButton class.

Properties

Property Modifiers Type Description
height number The height of the button's rect.
info toolbox.ButtonOrLabelInfo
TEXT_MARGIN_X static number The horizontal margin around the text in the button.
TEXT_MARGIN_Y static number The vertical margin around the text in the button.
width number The width of the button's rect.

Methods

Method Modifiers Description
createDom() Create the button elements.
dispose() Dispose of this button.
getButtonText()
getTargetWorkspace() Get the button's target workspace.
isLabel()
moveTo(x, y) Move the button to the given x, y coordinates.
show() Correctly position the flyout button and make it visible.