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

ParameterDefaultType
Animatedtruebool

Specifies whether the Offcanvas should have an animated transition.
AnimationDuration300int

The duration of the animation in milliseconds.
ChildContentnullRenderFragment

The content to be rendered inside the Offcanvas.
PlacementStartPlacement

Specifies the position of the Offcanvas.
Possible values:TopBottomStartEnd
ShowBackdroptruebool

Specifies whether to render the backdrop for this Offcanvas.
SizeDefaultOffcanvasSize

Changes the size of the offcanvas.
Possible values:DefaultSmallLargeExtraLargeFullscreen
Visiblefalsebool

Specifies the visibility state of the Offcanvas.

OffcanvasHeader

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this OffcanvasHeader .

OffcanvasBody

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this OffcanvasBody .

OffcanvasFooter

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this OffcanvasFooter.

Events

Offcanvas

EventType
ClosedEventCallback

Event callback for when the Offcanvas has been closed.
ClosingFunc<OffcanvasClosingEventArgs, Task>

Callback for handling the closing of the Offcanvas.
OpenedEventCallback

Event callback for when the Offcanvas has been opened.
OpeningFunc<OffcanvasOpeningEventArgs, Task>

Callback for handling the opening of the Offcanvas.
VisibleChangedEventCallback<bool>

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

Methods

Offcanvas

MethodReturnParameters
CloseTaskCloseReason closeReason

Triggers the closable component to be closed.
HideTask—

Fires the offcanvas dialog closure process.
IsSafeToCloseTask<bool>string elementId, CloseReason closeReason, bool isChildClicked

Finds if the closable component is ready to be closed.
ShowTask—

Starts the offcanvas opening process.
On this page