Blazorise Dock Layout API
Explore the Blazorise Dock Layout API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Dock Layout documentation.
API
Parameters
DockLayout
| 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 |
DockPane
| Parameter | Description | Type | Default |
|---|---|---|---|
AcceptPaneDrops |
Defines whether other panes can be dropped onto or around this pane. |
bool | true |
AutoHide |
Initially auto-hides the pane content while keeping the pane available on its docked side. |
bool | false |
AutoHideable |
Allows the pane header to show a pin action that toggles auto-hide behavior. |
bool | true |
Caption |
Defines the caption used by tabbed dock groups. |
string | |
ChildContent |
Specifies the content to be rendered inside this DockPane. |
RenderFragment | null |
Closable |
Allows the pane header to show a close action that hides the pane. |
bool | true |
Collapsed |
Initially collapses the pane content while keeping the pane in the dock layout. |
bool | false |
MaxSize |
Defines the maximum pane size when size constraints are applied. |
string | |
MinSize |
Defines the minimum pane size when size constraints are applied. |
string | |
Movable |
Allows the pane to be moved to another dock position by dragging its header. |
bool | true |
Name |
Identifies the pane inside the parent DockLayout and acts as the stable key used by persisted DockLayoutState values. |
string | |
PanePosition |
Defines where the pane is initially docked inside the layout. Possible values: |
DockPanePosition | DockPanePosition.Left |
Resizable |
Shows a splitter marker that indicates the pane can participate in resize behavior. |
bool | false |
Role |
Defines whether this pane behaves as a tool pane or as a document pane. Possible values: |
DockPaneRole | DockPaneRole.Tool |
ShowTab |
Defines whether this pane should display a tab when it is hosted inside a tab group. |
bool | true |
ShowTabCloseButton |
Defines whether a close button should be shown when this pane is rendered as a document tab. |
bool | false |
Size |
Defines the initial pane size, such as |
string | |
TabPosition |
Defines where tabs should be displayed when this pane is hosted inside a tab group. Possible values: |
DockPaneTabPosition | DockPaneTabPosition.Default |
Visible |
Initially shows or hides the pane in the dock layout. |
bool | true |
DockPaneHeader
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the header content to be rendered inside this DockPaneHeader. |
RenderFragment | null |
DockPaneBody
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the body content to be rendered inside this DockPaneBody. |
RenderFragment | null |
DockPaneFooter
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the footer content to be rendered inside this DockPaneFooter. |
RenderFragment | null |
DockContent
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this DockContent. |
RenderFragment | null |
DockSplit
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the split child content. |
RenderFragment | null |
Orientation |
Defines the initial split orientation. Possible values: |
Orientation | Orientation.Horizontal |
Ratio |
Defines the initial first child ratio. |
double | 0.5 |
DockTabs
| Parameter | Description | Type | Default |
|---|---|---|---|
ActivePane |
Defines the initially active pane name. |
string | |
ChildContent |
Specifies the tab child content. |
RenderFragment | null |
Events
DockLayout
| Event | Description | Type |
|---|---|---|
StateChanged |
Occurs after the docking state changes. |
EventCallback<DockLayoutState> |
DockPane
| Event | Description | Type |
|---|---|---|
Closing |
Callback invoked before the pane closes. Set DockPaneClosingEventArgs.Cancel to prevent closing. |
Func<DockPaneClosingEventArgs, Task> |
Methods
DockLayout
| 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 |
DockPane
| Method | Description | Return | Parameters |
|---|---|---|---|
Refresh |
Forces rendered pane content to refresh without changing the docking state. | Task |