useViewVisibility
ts
Returns the reactive 'hidden' state of a view.
Subscribes to DisplayAutoLayouter.onViewHiddenChanged
Parameters
| Parameter | Type | Description |
|---|---|---|
view | View | The view to observe |
Returns
ts
The current 'hidden' state and a function to change it
| Name | Type |
|---|---|
hidden | boolean |
setHidden() | (hidden: boolean) => void |
Throws
If called outside of an ImFusionProvider
Throws
If called before the SDK has finished initializing
Example
tsx