Stay organized with collections
Save and categorize content based on your preferences.
blockly > Flyout > initFlyoutButton_
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
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 `initFlyoutButton_` method is used to initialize and position buttons within a Blockly flyout."],["It takes a `FlyoutButton` object, along with x and y coordinates, to determine the button's placement within the flyout."],["This method is marked as protected, indicating it's primarily for internal use within the Flyout class."]]],[]]