blockly > Flyout > initFlyoutButton_
Flyout.initFlyoutButton_() 方法
初始化给定按钮:将其移至正确位置、添加监听器,等等。
Signature:
protected initFlyoutButton_(button: FlyoutButton, x: number, y: number): void;
参数
参数 | 类型 | 说明 |
---|---|---|
按钮 | FlyoutButton | 要初始化和放置的按钮。 |
x | number | 在此布局传递期间光标的 x 位置。 |
y | number | 在此布局传递期间光标的 y 位置。 |
返回:
void