The host form component (use for EditMode, dirty notifications, etc). Set by the slot host.
OptionalFormOptional form context — same shape the collapsible-panel chrome expects. Set by the slot host.
ReadonlyHostSlot-mounted hosts must not sit in the left-nav flex column — leftover
height targets mj-collapsible-panel as a direct child of
.mj-forms-all-panels. display: contents makes the inner panel that child.
The entity record being edited. Set by the slot host before view init.
OptionalRegistrationThe registration this panel was mounted from. Set by the slot host.
A panel reads its own slot from here, which is the only way it can know where in the form it was asked to sit: the class registration is looked up by the host, not by the panel, so nothing else on the instance carries it.
The slot element the panel was mounted in, set by the slot host. It is where the panel is on the page, which DisplayOrder reads its neighbours from.
The key a bare strip is filed under in the rail, when it replaces blocks and so belongs to their tab. Null for a strip that replaces nothing, which sits above every tab.
Flex order for the panel's own mj-collapsible-panel, to pass as [Order].
A panel's section key is not in the form's section order, so without this the form falls back to the section count and draws every panel at the bottom whatever slot it asked for. A panel standing in for a section takes that section's place instead, so replacing something does not also move it.
A slot between the form's blocks takes the order of the section beside it on the page, so the panel draws where the slot is (see SlotAnchorSectionKey). The very top and the very bottom keep fixed bands: the bottom has to stay below the More folder.
Convenience getter for read-only / edit-mode rendering. Falls back to
false when the panel is shown outside a BaseFormComponent host (e.g.,
a dashboard quick-edit dialog reusing the same panel — see the
"composable panel" docs).
The panel's icon, completed if it was stored without a style.
Font Awesome needs a style class beside the name: fa-chart-column alone matches a
rule that sets a glyph but no font family, so nothing draws. Rows written before the
picker existed carry bare names, and normalizing on the way out makes them render
rather than requiring each one to be edited.
ProtectedPanelThe registration this panel renders, which it holds as a whole contribution rather
than as the bare bag the slot host assigns. Answers DisplayOrder on the base.
The key the rail files this panel by.
The panel's header and rail label.
Configures overrides for any toolbar item (standard built-in items like 'edit', 'delete', 'favorite', 'history', etc., or custom items).
Dynamically disables a toolbar item by key, with an optional reason string for the tooltip.
Optionalreason: stringThe panel's validity as already known, with no awaiting and no work.
Synchronous callers (BaseFormComponent.Validate()) use this; it reports valid
unless the panel has cached a failing result from an earlier validation. A panel
whose Validate() is asynchronous should override this to return its last
reported state so synchronous callers are not simply blind to it.
Called after the parent form reloads the current record from the database. Default is a no-op. Override to refresh panel-owned data that is not a related-entity grid (those already subscribe to FormRecordRefreshCoordinator themselves).
Registers a dynamic toolbar action item / button into the host form toolbar.
Sets the numeric display order for a toolbar item.
Unregisters a previously registered dynamic toolbar item by key.
Use Validate.
Override to add per-panel validation that should block the parent form's
SaveRecord(). Return { Success: true, Errors: [] } when valid, or include
ValidationErrorInfo entries to surface field-level errors. The default
implementation reports valid (panels that don't need extra validation
can leave this method off).
May return a Promise: a panel that validates against the server has no
synchronous answer. BaseFormComponent.ValidateAsync() awaits it, which is
what SaveRecord() calls.
Stands in for the placement dialog's unsaved panel on the preview form.
Draws the same chrome a saved row draws — a collapsible panel with its title and icon, or a bare strip — around a marked body, so the form lays it out exactly as it will lay out the real panel.