Blazorise DockLayout component
Arranges docked panes around a central content surface.
API
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the panes and content to be rendered inside the dock layout. |
RenderFragment | null |
PaneBordered |
Defines whether non-document panes should render a visible border. |
bool | true |
SplitterThickness |
Defines the thickness, in pixels, of the splitters between dock panes. |
double | 6 |
State |
Defines the mutable state used for docking, resizing, active tabs, and pane visibility. The same state can be saved with GetState and restored with DockLayoutState). Declarative values initialize this state and are reapplied by ResetState. In-place changes to the assigned instance are not detected; apply them with DockLayoutState) or follow them with Refresh. |
DockLayoutState | null |
Events
| Event | Description | Type |
|---|---|---|
StateChanged |
Occurs after the docking state changes. |
EventCallback<DockLayoutState> |
Methods
| Method | Description | Return | Parameters |
|---|---|---|---|
ClosePane |
Closes a pane and removes it from the visible layout. | Task | string paneName |
GetState |
Returns a persistence snapshot of the current docking state. | DockLayoutState | |
IsPaneOpen |
Indicates whether a pane is currently open. | bool | string paneName |
LoadState |
Loads a docking state and applies it to the current layout. | Task | DockLayoutState state |
OpenPane |
Opens a pane that was previously closed. | Task | string paneName |
Refresh |
Forces rendered dock content to refresh without changing the docking state. Call this after mutating the State instance directly. | Task | |
ResetState |
Resets the docking state to the latest declarative layout definition. | Task | |
ShowPane |
Shows a pane by opening it, activating it, or expanding its auto-hide flyout. | Task | string paneName |
TogglePane |
Toggles a pane between opened and closed states. | Task | string paneName |