Class for a Toolbox. Creates the toolbox's DOM.
The workspace in which to create new blocks.
The html container for the toolbox.
The unique id for this component that is used to register with the ComponentManager.
Is RTL vs LTR.
Position of the toolbox and flyout relative to the workspace.
Hides the component. Called in Blockly.hideChaff.
Whether only popups should be closed. Flyouts should not be closed if this is true.
Unhighlights any previously selected item.
Disposes of this toolbox.
Gets the height of the toolbox.
The width of the toolbox.
Gets the previously selected item.
The previously selected item, or null if no item was previously selected.
Gets the selected item.
The selected item, or null if no item is currently selected.
Gets the toolbox item with the given ID.
The ID of the toolbox item.
The toolbox item with the given ID, or null if no item exists.
Gets the width of the toolbox.
The width of the toolbox.
Initializes the toolbox
Gets whether or not the toolbox is horizontal.
True if the toolbox is horizontal, false if the toolbox is vertical.
Handles when a cursor with a block or bubble enters this drag target.
The block or bubble currently being dragged.
Handles when a cursor with a block or bubble exits this drag target.
The block or bubble currently being dragged.
Handles when a cursor with a block or bubble is dragged over this drag target.
The block or bubble currently being dragged.
Handles when a block or bubble is dropped on this component. Should not handle delete here.
The block or bubble currently being dragged.
Handles the given keyboard shortcut.
The shortcut to be handled.
True if the shortcut has been handled, false otherwise.
Positions the toolbox based on whether it is a horizontal toolbox and whether the workspace is in rtl.
Updates the flyout's content without closing it. Should be used in response to a change in one of the dynamic categories, such as variables or procedures.
Fills the toolbox with new toolbox items and removes any old contents.
Object holding information for creating a toolbox.
Selects the toolbox item by its position in the list of toolbox items.
The position of the item to select.
Sets the given item as selected. No-op if the item is not selectable.
The toolbox item to select.
Shows or hides the toolbox.
True if toolbox should be visible.
Returns whether the provided block or bubble should not be moved after being dropped on this component. If true, the element will return to where it was when the drag started.
The block or bubble currently being dragged.
Whether the block or bubble provided should be returned to drag start.
Returns whether the provided block or bubble would be deleted if dropped on this area. This method should check if the element is deletable and is always called before onDragEnter/onDragOver/onDragExit.
The block or bubble currently being dragged.
Whether the element could could connect to another.
Whether the element provided would be deleted if dropped on this area.
Fake class which should be extended to avoid inheriting static properties