Readonly
typeType of the content item. Always stack, but useful for distinguishing between a TabStack and ColumnOrRow.
Experimental
Adds or creates a view in this TabStack.
Known Issue: If adding a view overflows the tab-container, the added view will be set as active and rendered at the front of the tab-stack, while the underlying order of tabs will remain unchanged.
Resolves with the identity of the added view.
If the view does not exist or fails to create.
If the TabStack has been destroyed.
TabStack.addView
The identity of an existing view to add, or options to create a view.
Optional view options: index number used to insert the view into the stack at that index. Defaults to 0 (front of the stack)
Optional
position?: LayoutPositionExperimental
Retrieves a list of all views belonging to this TabStack.
Known Issue: If adding a view overflows the tab-container width, the added view will be set as active and rendered at the front of the tab-stack, while the underlying order of tabs will remain unchanged. If that happens and then getViews() is called, it will return the identities in a different order than than the currently rendered tab order.
Resolves with a list containing the identities of each view belonging to the TabStack.
If the TabStack has been destroyed.
TabStack.getViews
Removes a view from this TabStack.
If the view does not exist or does not belong to the stack.
If the TabStack has been destroyed.
TabStack.removeView
Identity of the view to remove.
Experimental
Sets the active view of the TabStack without focusing it.
Promise which resolves with void once the view has been activated.
If the TabStack has been destroyed.
If the view does not exist.
TabStack.setActiveView
Identity of the view to activate.
Static
getGenerated using TypeDoc
A TabStack is used to manage the state of a stack of tabs within an OpenFin Layout.