blockly > FlyoutItem > (constructor)
FlyoutItem.(constructor)
建立新的 FlyoutItem。
Signature:
constructor(element: IBoundedElement & IFocusableNode, type: string);
參數
參數 | 類型 | 說明 |
---|---|---|
元素 | IBoundedElement 和 IFocusableNode | 要顯示在彈出式視窗中的元素。 |
類型 | 字串 | 元素的類型。應與建立此物件的彈出式充氣工具類型相符。 |