useLayoutMode
ts
Returns the reactive display layout mode.
Subscribes to DisplayAutoLayouter.onModeChanged.
Returns
ts
The current mode and a function to change it
| Name | Type |
|---|---|
mode | DisplayLayoutMode |
setMode() | (mode: DisplayLayoutMode) => void |
Throws
If called outside of an ImFusionProvider
Throws
If called before the SDK has finished initializing
Example
tsx