Skip to content

RedDokia API Reference / RedDokiaViewSchema

Interface: RedDokiaViewSchema<TParams> ​

Descriptor registering a panel or document view's metadata, constraints, and component renderer.

Type Parameters ​

Type ParameterDefault type
TParamsRecord<string, any>

Properties ​

PropertyTypeDescription
badge?string | numberOptional counter or status badge displayed on the tab and edge-bar button.
closable?booleanWhether the user can close this view tab (true by default).
component?RedDokiaViewComponent<TParams>Component or mount handler used to render this view's content body across React, Vue, Svelte, or Vanilla environments.
dirty?booleanMarks the view as having unsaved changes (displays a dirty indicator dot on the tab).
eagerMount?booleanMounts the view component immediately even before its tab is first activated (false = lazy mount on first activation).
groupActions?unknownPer-view custom component or DOM mount handler rendered on the right side of the host group header bar when this view is active. Takes precedence over the global groupActions prop for this view and any dynamic tabs cloned from it via templateId.
icon?RedDokiaIconValueIcon rendered alongside the view title (RedDokiaIcons.* constant, built-in icon name, inline SVG, DOM node, or framework icon component).
idstringUnique identifier of the view instance.
maxHeight?numberMaximum content height constraint in pixels contributed to its host group.
maxWidth?numberMaximum content width constraint in pixels contributed to its host group.
minHeight?numberMinimum content height constraint in pixels contributed to its host group.
minWidth?numberMinimum content width constraint in pixels contributed to its host group.
onBeforeClose?(viewId, viewSchema?) => boolean | Promise<boolean>Optional per-view close guard executed before closing this tab. When defined, takes precedence over the global onBeforeCloseView callback; return false or a Promise<false> to abort closing.
params?TParamsCustom serializable parameters passed into the view's component.
pinned?booleanPins the tab to the leading edge of its group tab bar and prevents accidental closing.
tabContextMenu?RedDokiaTabContextMenuOptionPer-view right-click tab context menu configuration (static array, resolver callback, or { mode, items }). Takes precedence over the global tabContextMenu prop for this view and any dynamic tabs cloned from it via templateId.
templateId?stringOptional base view template ID used to resolve renderer/component definitions for dynamically spawned instances.
title?stringDisplay title shown on the tab and edge bar button (defaults to a humanized label derived from id when omitted).