ui/Resizable

A higher-order component that handles component resize event.

import Resizable from '@enact/ui/Resizable';

Members

ResizableHigher-Order Component

A higher-order component that notifies a container that the wrapped component has been resized.

It may be useful in cases where a component may need to update itself as a result of its children changing in size, such as a Scroller.

Containers must provide an invalidateBounds method via React's context in order for Resizable instances to notify it of resize.

import Resizable from '@enact/ui/Resizable';
Configuration
filter
String

Configures the event name that will indicate a resize of a container may be necessary.

Default: null
resize
Function

Configures a function that can filter the event to limit when the container is notified.

This function will receive the event payload as its only argument and should return true to prevent the resize notification.

Default: null
ArrayBooleanFunctionModuleNumberObjectString