usePresentationTreeState Function

building APIs (see https://github.com/iTwin/presentation/blob/33e79ee8d77f30580a9bab81a72884bda008db25/README.md#the-packages).

Custom hook that creates and manages state for ControlledTree component based on presentation data.

usePresentationTreeState<TEventHandler extends TreeEventHandler>(__namedParameters: UsePresentationTreeStateProps<TEventHandler>): UsePresentationTreeStateResult<TEventHandler> | undefined

Parameter Type Description
__namedParameters UsePresentationTreeStateProps<TEventHandler>  

Returns - UsePresentationTreeStateResult<TEventHandler> | undefined

Defined in

Last Updated: 17 December, 2024