D Donkeh docs
GitHub

Using the hierarchy

The Elements tab is the inspector's live DOM and style editor. It shows the same reconciled tree the renderer is drawing, including component and text nodes.

Open the inspector

Devtools are enabled by default for desktop. Set EnableDevTools = true on [AppRoot] (or in WindowSettings) when configuring a custom host.

[AppRoot(
    Width = 1180,
    Height = 760,
    Title = "My app",
    EnableDevTools = true)]
public sealed class App : Component
{
    public override Node Render() => H("main");
}

Toggle the panel with:

The toolbar also has a dock button for the bottom edge, a dock button for the right edge, a window mode and a close button. Docked panels shrink the app viewport instead of covering it. Drag the splitter to resize.

Browser host The built-in inspector is wired into the desktop/Android renderer. In the browser, use the browser's own devtools.

The Elements layout

The tab is split into two panes. The left pane is the hierarchy; the right pane is the style editor for the selected node.

┌─────────────────────────────────────────────────────────────┐
│ Elements  Performance  Animations  Deploy      ⌖  ▤  ▥  ×  │
├──────────────────────────────┬──────────────────────────────┤
│ DOM tree                     │ styles                       │
│  ▾ main.app                  │ element.style                │
│    ▾ section.card            │ .card { ... }                │
│      ▸ h2.card-title         │ .card-action:hover { ... }   │
│      ▸ p.card-copy           │                              │
└──────────────────────────────┴──────────────────────────────┘

Walking the hierarchy

The inspect button (the crosshair in the toolbar) lets you pick an element directly from the app. Click the picker, then click any app element. The inspector selects it and expands its path. Inspect mode is cleared after a pick.

Editing styles

The right pane shows an element.style group first for the selected element, followed by matched rules. Each group lists its declarations; the inspector groups rules by selector and keeps the live stylesheet order.

Use element.style for experiments Put one-off overrides in element.style first. Once a value is right, move it into the component's CSS rule so it survives a remount.

Selection and refreshes

The inspector is a normal UILab tree, separate from the app tree. It refreshes when the app tree changes and prunes selections or expansion entries whose nodes have left the tree. If an element is removed, its selection is cleared safely rather than pointing at a dead node.

Keyboard and APIs

ActionHow
Toggle inspectorF12 or Ctrl+Shift+I
Show / hide / toggle from codeShowDevTools(), HideDevTools(), ToggleDevTools()
DockToolbar buttons, or DevTools.Dock
ResizeDrag the splitter