- Home
- /
- Design
- /
- DMBBootstrapBuilder
- /
- Fluid
Fluid Layout Toggle
Switch the main content area between fluid (full-width) and fixed-width container.
FluidToggleActionItem
Toggles the container-fluid class on the main content wrapper. Pass true for fluid, false for fixed.
Fluid toggle
C#
@using DMBBootstrapBuilder
@using DMBPageBuilder
@{ _ = new FluidToggleActionItem(Html, true); }
@using (Html.FlexBlockBuilder().WithGap(Old_Gap.Gap2).Begin())
{
@Html.Button(new JavaScriptActionItem("FluidModeMethod.set(true); return false;")
.SetTitle("Enable fluid")
.SetIcon(IconStruct.Bootstrap("bi-arrows-fullscreen"))
.SetVariant(VariantStyle.Secondary)
.SetOutlined())
@Html.Button(new JavaScriptActionItem("FluidModeMethod.set(false); return false;")
.SetTitle("Disable fluid")
.SetIcon(IconStruct.Bootstrap("bi-fullscreen-exit"))
.SetVariant(VariantStyle.Secondary)
.SetOutlined())
}
Session Consent : Consent to use session for this website