Dock manager

DockManagerControl

Let users split, float, unpin and close panes, and save the layout as JSON.

Overview

DockManagerControl is a Blazor dock manager: tabbed panes users can split, float, unpin and close, as in a desktop IDE. Use it for workspaces with several tools open at once, such as a ticket list, a conversation and a customer's details; the whole arrangement saves and restores as one JSON document you can store per user. Methods such as FloatAsync and DockAsync move panes from code.

Examples

#A help desk workspace

Arrange the Loose Wire Help Desk workspace: use a pane's Dock… menu to move it, float Customer, unpin Tickets, close Notes and bring it back; Save and Restore round-trip the layout as JSON.

  • TKT-1042 Router keeps restarting
  • TKT-1043 Charged twice in October
  • TKT-1044 Cannot reset password
  • TKT-1045 Slow connection in the evenings

TKT-1042 Router keeps restarting

Customer: the router has restarted every evening since Monday. Agent: please unplug it for 30 seconds and plug it back in. Customer: no change. Can a technician come on Saturday?

The conversation pane cannot be closed, so its action bar has no Close button.

Name
Albus Door
Channel
Phone
Status
Open, High priority

No changes yet.

#Driving it from code

Ticket TKT-1043, Charged twice in October, is open in three panes. Use the buttons to float, unpin, close and re-dock them from code with FloatAsync, UnpinAsync, CloseAsync and DockAsync; Close Conversation does nothing, because that pane is not closable.

To Hermione Ranger on TKT-1043: the duplicate $59 charge is refunded within five business days.

This pane can float.

No changes yet.

Documentation

ParameterTypeDefaultDescription
PanelsIReadOnlyList<DockPanel>Array.Empty<DockPanel>()The panes: unique, non-empty keys, a title, the content and the two permissions. When State is null, panes added later join the first group and removed ones leave the layout; when State is set, pass a State that places every current key, or the control throws.
StateDockLayoutState?nullThe starting arrangement. A new instance is validated against the keys and copied; null gives one group with every pane, the first active.
Heightstring"500px"Height of the manager.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.