Blazorise Offcanvas API

Explore the Blazorise Offcanvas API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Offcanvas documentation.

API

Parameters

Offcanvas

Parameter Description TypeDefault
Animated

Specifies whether the Offcanvas should have an animated transition.

booltrue
AnimationDuration

The duration of the animation in milliseconds.

int300
ChildContent

The content to be rendered inside the Offcanvas.

RenderFragmentnull
Placement

Specifies the position of the Offcanvas.

Possible values:Top, Bottom, Start, End

PlacementPlacement.Start
ShowBackdrop

Specifies whether to render the backdrop for this Offcanvas.

booltrue
Size

Changes the size of the offcanvas.

Possible values:Default, Small, Large, ExtraLarge, Fullscreen

OffcanvasSizeOffcanvasSize.Default
Visible

Specifies the visibility state of the Offcanvas.

boolfalse

OffcanvasHeader

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this OffcanvasHeader .

RenderFragmentnull

OffcanvasBody

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this OffcanvasBody .

RenderFragmentnull

OffcanvasFooter

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this OffcanvasFooter.

RenderFragmentnull

Events

Offcanvas

Event Description Type
Closed

Event callback for when the Offcanvas has been closed.

EventCallback
Closing

Callback for handling the closing of the Offcanvas.

Func<OffcanvasClosingEventArgs, Task>
Opened

Event callback for when the Offcanvas has been opened.

EventCallback
Opening

Callback for handling the opening of the Offcanvas.

Func<OffcanvasOpeningEventArgs, Task>
VisibleChanged

Event callback for when the visibility state of the Offcanvas changes.

EventCallback<bool>

Methods

Offcanvas

Method DescriptionReturnParameters
Close Triggers the closable component to be closed. TaskCloseReason closeReason
Hide Fires the offcanvas dialog closure process. Task
IsSafeToClose Finds if the closable component is ready to be closed. Task<bool>string elementId, CloseReason closeReason, bool isChildClicked
Show Starts the offcanvas opening process. Task
On this page