web / useFullWidthToggleForConfig
Function: useFullWidthToggleForConfig() ​
useFullWidthToggleForConfig<
Type>(configuration,defaultLayout):UseFullWidthToggleReturn
Defined in: apps/web/app/composables/useFullWidthToggle/useFullWidthToggle.ts:37
Composable to manage the full-width toggle state for "structure" blocks where the layout object is nested inside a configuration property.
Type Parameters ​
Type ​
Type extends object
Parameters ​
configuration ​
Ref<Type>
A Ref containing the configuration object with optional layout property.
defaultLayout ​
Layout = DEFAULT_LAYOUT
The default layout object to use if layout is missing.
Returns ​
UseFullWidthToggleReturn
An object with a reactive isFullWidth property for two-way binding.