Class DialogBuilder
Provides utility methods for building dialog CSS classes.
public class DialogBuilder
- Inheritance
-
DialogBuilder
- Inherited Members
Constructors
DialogBuilder(TwBlazorOptions, RoundedBuilder, ShadowBuilder)
Provides utility methods for building dialog CSS classes.
public DialogBuilder(TwBlazorOptions options, RoundedBuilder roundedBuilder, ShadowBuilder shadowBuilder)
Parameters
optionsTwBlazorOptionsroundedBuilderRoundedBuildershadowBuilderShadowBuilder
Methods
GetBackdropClasses(DialogPosition?, string?)
Gets the classes for the fixed backdrop/positioning overlay that hosts a dialog.
public string GetBackdropClasses(DialogPosition? position, string? backdropClass = null)
Parameters
positionDialogPosition?The screen position of the dialog.
backdropClassstringAdditional custom classes to append.
Returns
GetMaxWidthClasses(DialogMaxWidth?)
Gets the Tailwind CSS max-width class for the specified breakpoint.
public string GetMaxWidthClasses(DialogMaxWidth? maxWidth)
Parameters
maxWidthDialogMaxWidth?The maximum width breakpoint.
Returns
GetPositionClasses(DialogPosition?)
Gets the flex alignment classes used to position the dialog surface within the backdrop.
public string GetPositionClasses(DialogPosition? position)
Parameters
positionDialogPosition?The screen position of the dialog.
Returns
GetSurfaceClasses(DialogMaxWidth?, bool, bool, Rounded?, Shadow?, string?)
Gets the classes for the dialog surface (the visible card containing the dialog content).
public string GetSurfaceClasses(DialogMaxWidth? maxWidth, bool fullWidth, bool fullScreen, Rounded? rounded, Shadow? shadow, string? customClass = null)
Parameters
maxWidthDialogMaxWidth?The maximum width breakpoint for the dialog.
fullWidthboolWhether the dialog should stretch to fill
maxWidth.fullScreenboolWhether the dialog should stretch to fill the entire screen.
roundedRounded?Instance-level rounded override.
shadowShadow?Instance-level shadow override.
customClassstringAdditional custom classes to append.