Overrides the contentNode
property getter in PhosphorJS' TabBar.
Overrides the scrollable host from the parent class.
Restructures the DOM defined in PhosphorJS.
By default the tabs (li
) are contained in the this.contentNode
(ul
) which is wrapped in a div
(this.node
).
Instead of this structure, we add a container for the this.contentNode
and for the toolbar.
The scrollbar will only work for the ul
part but it does not affect the toolbar, so it can be on the right hand-side.
Reveal the tab with the given index by moving the scroll bar if necessary.
Specialized scrollable tab-bar which comes with toolbar support. Instead of the following DOM structure.
+-------------------------+ |[TAB_0][TAB_1][TAB_2][TAB| +-------------Scrollable--+
There is a dedicated HTML element for toolbar which does not contained in the scrollable element.
+-------------------------+-----------------+ |[TAB_0][TAB_1][TAB_2][TAB| Toolbar | +-------------Scrollable--+-Non-Scrollable-+