Table of Contents

Class DialogBuilder

Namespace
TwBlazor.Builders
Assembly
TwBlazor.dll

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

options TwBlazorOptions
roundedBuilder RoundedBuilder
shadowBuilder ShadowBuilder

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

position DialogPosition?

The screen position of the dialog.

backdropClass string

Additional custom classes to append.

Returns

string

GetMaxWidthClasses(DialogMaxWidth?)

Gets the Tailwind CSS max-width class for the specified breakpoint.

public string GetMaxWidthClasses(DialogMaxWidth? maxWidth)

Parameters

maxWidth DialogMaxWidth?

The maximum width breakpoint.

Returns

string

GetPositionClasses(DialogPosition?)

Gets the flex alignment classes used to position the dialog surface within the backdrop.

public string GetPositionClasses(DialogPosition? position)

Parameters

position DialogPosition?

The screen position of the dialog.

Returns

string

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

maxWidth DialogMaxWidth?

The maximum width breakpoint for the dialog.

fullWidth bool

Whether the dialog should stretch to fill maxWidth.

fullScreen bool

Whether the dialog should stretch to fill the entire screen.

rounded Rounded?

Instance-level rounded override.

shadow Shadow?

Instance-level shadow override.

customClass string

Additional custom classes to append.

Returns

string