blockly > FlyoutButton

FlyoutButton class

Class for a button or label in the flyout.


export declare class FlyoutButton 


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.


Property Modifiers Type Description
BORDER_RADIUS static number The radius of the flyout button's borders.
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.


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