ImFusion Web SDK

useViewVisibility

ts

Returns the reactive 'hidden' state of a view.

Subscribes to DisplayAutoLayouter.onViewHiddenChanged

Parameters

ParameterTypeDescription
viewViewThe view to observe

Returns

ts

The current 'hidden' state and a function to change it

NameType
hiddenboolean
setHidden()(hidden: boolean) => void

Throws

If called outside of an ImFusionProvider

Throws

If called before the SDK has finished initializing

Example

tsx

See

useLayoutMode