Home > blockly > FlyoutItem > (constructor)
FlyoutItem.(constructor)
Creates a new FlyoutItem.
Signature:
constructor(element: IBoundedElement & IFocusableNode, type: string);
Parameters
| Parameter | Type | Description |
|---|---|---|
| element | IBoundedElement & IFocusableNode | The element that will be displayed in the flyout. |
| type | string | The type of element. Should correspond to the type of the flyout inflater that created this object. |