ImFusion Web SDK

useLayoutMode

ts

Returns the reactive display layout mode.

Subscribes to DisplayAutoLayouter.onModeChanged.

Returns

ts

The current mode and a function to change it

NameType
modeDisplayLayoutMode
setMode()(mode: DisplayLayoutMode) => void

Throws

If called outside of an ImFusionProvider

Throws

If called before the SDK has finished initializing

Example

tsx