blockly > Flyout > initFlyoutButton_
Flyout.initFlyoutButton_() 方法
初始化指定按鈕:將按鈕移至正確位置、新增事件監聽器等。
Signature:
protected initFlyoutButton_(button: FlyoutButton, x: number, y: number): void;
參數
參數 | 類型 | 說明 |
---|---|---|
按鈕 | FlyoutButton | 用於初始化及定位的按鈕。 |
x | 號碼 | 在這個版面配置過程中,遊標的 x 位置。 |
y | 號碼 | 在這個版面配置過程中,遊標的 y 位置。 |
傳回:
void