Skip to content

WorkspaceTabs.getTabInsertLocation method

WorkspaceTabs › getTabInsertLocation

Unofficial

Computes where a dragged tab would be inserted for a given horizontal position.

Signature:

getTabInsertLocation(x: number): TabInsertLocation

Parameters:

Parameter Type Description
x number The horizontal position, in pixels.

Returns: TabInsertLocationThe insertion location.