Optionaloptions: Partial<CommandBarOptions>OptionalenableHover: booleanAttaches the clickable command bar tooltip to an editor
Depending on the alwaysShow parameter it either displays the tooltip immediately, or subscribes to the necessary events to display the tooltip on hover.
Detaches the tooltip from the editor.
Registers a command on the command bar tooltip.
The commands are added in sequential order. If there is not enough space on the main toolbar, the remaining elements are added to the overflow menu.
Sets the display mode of the tooltip
When true, the tooltip is always displayed while it is attached to an editor. When false, the tooltip is displayed only when the mouse hovers over the active editor line.
Updates each command element in the tooltip.
This is automatically called on certain events, but can be called manually as well.
Updates the position of the command bar tooltip. It aligns itself above the active line in the editor.
Displays a command tooltip above the currently active line selection, with clickable elements.
Internally it is a composite of two tooltips, one for the main tooltip and one for the overflowing commands. The commands are added sequentially in registration order. When attached to an editor, it is either always shown or only when the active line is hovered with mouse, depending on the alwaysShow property.