Inspector

Page settings and element settings, grouped in accordions. Right panel in the DocStudio designer interface.

The Inspector is the first tab of the right panel. It edits the page when nothing is selected and the selected element otherwise.

Page settings (nothing selected)

The header shows Page and the document name. Four sections appear:

  • Page: paper size, orientation, margins (one value or each side), direction, mode and background. Defaults of the engine are shown as placeholders, for example A4 and 15 mm. See Page size, orientation, margins and direction.
  • Language and data: locale, theme and what to do when data is missing. Theme is a dropdown with the theme names the host passes in the themes prop of the Designer. Without that prop only the default is offered.
  • Document: name and description.
  • Header and footer: the height of each region, shown once it exists.

Element settings (one element selected)

The inspector for a selected text element

The header shows an icon, the element type, its id (or its name) and a tag, Fixed for an element inside a fixed region or Flow otherwise. Four icon buttons sit at its end:

Action Effect
Duplicate Copies the element with a new id, right after it
Wrap in stack Puts the element inside a new stack. Not available for fixed elements
Unwrap Replaces a container by its children. Only for containers
Delete Removes the element

The settings are grouped in sections. A section only appears when the element supports it, and no section is empty. Click a section header to collapse or expand it. The open or closed state is remembered while you select other elements. Only the first section starts open and several sections can be open at once. Opening one never closes another.

Section Shown for Contents
Data Barcode, QR code, repeater, table The source or value as an expression, and for a repeater the item name
Content Text, table, repeater, reusable component Text segments, the table designer, the repeater empty state, or the component props and slots
Position and size Every element W and H for flow elements. For an element in a fixed region X, Y, W, H, rotation and layer order
Layout Stack, row, grid, section, fixed region Gap, alignment, justification, column tracks, direction and the size of a fixed region
Element section Image, barcode, QR code, shape, divider, page number Settings of that element, named after it. See Toolbox component reference
Typography Text, page number, table Font, size, weight, line height, letter spacing, slant, decoration, direction, text alignment (icon buttons) and text color
Appearance Most elements Fill (color) and opacity
Border Text, image, containers, table Width, style, color and radius
Spacing Text, image, containers, barcode, QR code Padding and margin, one value or each side
Conditions Every element Condition (show the element only when an expression is true) and Conditional styles
Advanced Every element The element name and every style property that has no control above, added on demand

Numeric fields show their unit (mm, pt or degrees). Click in a number and press the arrow keys to change it by 1, hold Shift for 10 or Alt for 0.1. Fields that are not set show the inherited default as a grayed placeholder.

Several elements selected

Select several elements with Shift-click (canvas or Layers) or Ctrl or Cmd-click (Layers). The header shows the count and the element types. The sections shown are the ones every selected element supports, for example Typography only when all of them are text. A value that differs between elements is empty and shows Mixed. Editing a field sets the value on every selected element in one undo step.

Section Contents
Align Align left edges, horizontal centers, right edges, top edges, vertical centers and bottom edges to the bounds of the selection. Only for elements in the same fixed region
Position and size X, Y, W and H for elements in a fixed region, or width and height for flow elements
Typography, Appearance, Border, Spacing The shared controls of the elements

Duplicate, Wrap in stack and Delete in the header act on the whole selection. Wrap is not available for elements in a fixed region.

Switches and toggles

On/off settings use a switch, for example Repeat header on each page and Use a fallback. Bold and italic are toggle buttons marked B and I.

Every choice field uses the same drop-down list that matches the rest of the editor. The first row of an optional field is Default with the inherited value in brackets, for example Default (flow); picking it removes the setting. The selected row has a check mark. The list opens below the field, or above it when there is no room, and stays inside the editor.

From the keyboard: press Down, Up, Enter or Space on the field to open it, use the arrow keys, Home and End to move, type a letter to jump to a row, Enter to choose and Escape to close. Editor shortcuts such as Delete do not run while a drop-down has focus.

Editing a value

Type a value and leave the field (or press Enter). The value is checked before it is applied:

  • numbers must be within their allowed range,
  • choices must be from the list,
  • colors must be valid hex colors, plain color names or token references,
  • a required value cannot be empty.

An invalid value is refused with a message under the field and the template does not change. Typing in one field is grouped into a single undo step.

Binding and expressions

Fields that take data (text segments, QR and barcode values, repeater and table sources, conditions and cell contents) use the expression editor: choose a fixed value, a data path (with suggestions from the schema at that point) or a function call, add a fallback and see a live preview with the value, its type and the binding state. See Expressions.

Locked fields

If the host locks a configuration value, the field is read only and shows "Locked by configuration".

Narrow panels

Labels always sit above their inputs. Groups of small fields (X, Y, W, H, size and weight, border width and style) show two to a row and fall back to one per row when the panel is narrow, so controls never overlap or shrink below a usable width. The tab strip scrolls when the panel is at its smallest.

Limits

  • A border edited with several elements selected changes only the property you edit; other border properties of each element are kept.
  • Alignment needs elements in the same fixed region that each have a set width and height.
  • Style values cannot contain arbitrary CSS. Only the properties above are accepted, which keeps documents safe.