ui/utils/resizeHandler

The resizeHandler module exports the resizeHandler function .

The resizeHandler orchestrates how the view reqcts when a resize element is used.

Methods

(inner) collapseTarget(e, params)

Reduces the size of the target to 0 if it is expanded or sets the target to a calculated default if it is collapsed.

Parameters:
NameTypeDescription
eevent

The resize event.

paramsObject

Configuration for the resizeHandler.

Properties
NameTypeDescription
params.axisstring

The axis along which the element should be adjusted.

(inner) resizeEventHandler(params)

The resizeHandler adds event listeners for mouseup/down and mousemouce events to perform the resizing of affected panels.

Parameters:
NameTypeDescription
paramsObject

Configuration options for the resizeHandler.

Properties
NameTypeAttributesDefaultDescription
params.resizeEventfunction

The function that dictates what happens during resizing.

params.targetHTMLElement

the resize element.

params.axisstring<optional>
X

The axis along which the resizing is to occur.

params.doubleClickCloseboolean<optional>

Whether double clicking the handler collapses the panel.

(inner) resizeEventHandler(e)

Resizes elements attached to the resize handler by adjusting the grid template attributes of the document body.

Parameters:
NameTypeDescription
eevent

The resize event.

(inner) stopResize Removes resizing Events and restores the cursor()

Remove resize events.