Stay organized with collections
Save and categorize content based on your preferences.
blockly > VerticalFlyout
VerticalFlyout class
Class for a flyout.
Signature:
export declare class VerticalFlyout extends Flyout
Extends: Flyout
Constructors
Properties
Property |
Modifiers |
Type |
Description |
registryName |
static |
string |
The name of the vertical flyout in the registry. |
Methods
Method |
Modifiers |
Description |
getClientRect() |
|
Returns the bounding rectangle of the drag target area in pixel units relative to viewport. |
getX() |
|
Calculates the x coordinate for the flyout position. |
getY() |
|
Calculates the y coordinate for the flyout position. |
layout_(contents, gaps) |
protected |
Lay out the blocks in the flyout. |
position() |
|
Move the flyout to the edge of the workspace. |
reflowInternal_() |
protected |
Compute width of flyout. toolbox.Position mat under each block. For RTL: Lay out the blocks and buttons to be right-aligned. |
scrollToStart() |
|
Scroll the flyout to the top. |
setMetrics_(xyRatio) |
protected |
Sets the translation of the flyout to match the scrollbars. |
wheel_(e) |
protected |
Scroll the flyout. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `VerticalFlyout` class in Blockly manages the vertical flyout, a UI element for accessing and selecting blocks."],["It inherits properties and methods from the `Flyout` class and provides specialized functionality for vertical layout and positioning."],["Key methods include `layout_` for arranging blocks, `position` for workspace placement, and `scrollToStart` for navigation."],["This class uses the `registryName` property for identification and offers methods like `getX`, `getY`, and `getClientRect` for precise positioning."]]],[]]