ui/utils/resizeHandler
The resizeHandler module exports the resizeHandler function .
The resizeHandler orchestrates how the view reqcts when a resize element is used.
- Source
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.
| Name | Type | Description |
|---|---|---|
e | event | The resize event. |
params | Object | Configuration for the resizeHandler. |
| Name | Type | Description |
|---|---|---|
params.axis | string | 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.
| Name | Type | Description |
|---|---|---|
params | Object | Configuration options for the resizeHandler. |
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
params.resizeEvent | function | The function that dictates what happens during resizing. | ||
params.target | HTMLElement | the resize element. | ||
params.axis | string | <optional> | X | The axis along which the resizing is to occur. |
params.doubleClickClose | boolean | <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.
| Name | Type | Description |
|---|---|---|
e | event | The resize event. |
(inner) stopResize Removes resizing Events and restores the cursor()
Remove resize events.