Skip to content

RedDokia API Reference / RedDokiaInstance

Interface: RedDokiaInstance ​

Active RedDokia workbench instance returned by new RedDokia(container, props). Directly exposes all RedDokiaController methods (openView, closeView, etc.) as well as .controller.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited from
closeAllViewspublic(groupId?) => voidCloses all closable unpinned tabs in groupId (defaults to the active group).RedDokiaController.closeAllViews
closeOtherViewspublic(groupId, keepViewId) => voidCloses all closable unpinned tabs in groupId except keepViewId.RedDokiaController.closeOtherViews
closeSavedViewspublic(groupId?) => voidCloses all closable tabs in groupId (defaults to the active group) that are not marked dirty.RedDokiaController.closeSavedViews
closeViewpublic(viewId) => voidCloses a view tab (respecting onBeforeCloseView guards if configured).RedDokiaController.closeView
closeViewsToRightpublic(groupId, pivotViewId) => voidCloses all closable unpinned tabs positioned to the right of pivotViewId in groupId.RedDokiaController.closeViewsToRight
controllerreadonlyRedDokiaControllerImperative controller API for inspecting and mutating the workbench state.-
destroypublic() => voidTears down all event listeners, ResizeObservers, pop-out windows, and DOM nodes created by this instance.-
dockViewToGrouppublic(viewId, targetGroupId, zone) => voidMoves and docks viewId into targetGroupId at the specified directional zone.RedDokiaController.dockViewToGroup
exportLayoutJsonpublic() => stringSerializes the current layout state into a versioned JSON snapshot string.RedDokiaController.exportLayoutJson
floatGrouppublic(groupId?, rect?) => voidDetaches all tabs of a docked groupId (defaults to the active group) together into a multi-tab Zero-Unmount floating window.RedDokiaController.floatGroup
floatViewpublic(viewId, rect?) => voidDetaches a single view tab into a Zero-Unmount floating window at optional rect coordinates.RedDokiaController.floatView
getLayoutStatepublic() => RedDokiaLayoutStateReturns a read-only snapshot of the current RedDokiaLayoutState.RedDokiaController.getLayoutState
getLocalepublic() => RedDokiaLocaleReturns the currently active UI locale code.RedDokiaController.getLocale
getPopoutViewIdspublic() => string[]Returns all view IDs currently hosted inside open native pop-out windows.RedDokiaController.getPopoutViewIds
getThemepublic() => RedDokiaThemeIdReturns the currently active workbench theme ID ('dark', 'light', or a custom theme ID).RedDokiaController.getTheme
getViewHostElementpublic(viewId) => HTMLElementReturns the persistent HTMLElement host container for a mounted view ID, or null if not yet mounted.-
importLayoutJsonpublic(json) => booleanRestores the workbench layout from a serialized JSON snapshot string; returns true if valid and applied.RedDokiaController.importLayoutJson
moveViewToEdgeSlotpublic(viewId, slot) => voidMoves a tool window view to one of the 6 peripheral EdgeBar slots ('left-top', 'left-bottom', 'bottom-left', 'bottom-right', 'right-bottom', 'right-top').RedDokiaController.moveViewToEdgeSlot
openViewpublic(viewId, targetGroupOrOptions?) => voidOpens an existing registered view or spawns a dynamic view in the target group (activates it if already open).RedDokiaController.openView
popoutGrouppublic(groupId?, rect?) => voidDetaches an entire group's tabs (defaults to the active group) into a multi-tab native OS browser pop-out window.RedDokiaController.popoutGroup
popoutViewpublic(viewId, rect?) => voidDetaches a view into a native OS browser pop-out window via window.open.RedDokiaController.popoutView
redockFloatingGrouppublic(floatingGroupId, targetGroupId?) => voidRe-docks all views of a floating window back into targetGroupId or an appropriate grid group.RedDokiaController.redockFloatingGroup
redockFloatingViewpublic(viewId, targetGroupId?) => voidRe-docks a single view from a floating window back into the main grid.RedDokiaController.redockFloatingView
redockPopoutGrouppublic(popoutIdOrViewId, targetGroupId?) => voidRe-docks all views of a native pop-out window back into the main workbench grid. Accepts either a pop-out window ID or any view ID hosted inside that pop-out window.RedDokiaController.redockPopoutGroup
redockPopoutViewpublic(viewId, targetGroupId?) => voidRe-docks a single view from a native pop-out window back into the main workbench grid.RedDokiaController.redockPopoutView
registerViewpublic<TParams>(schema, options?) => voidDynamically registers a new RedDokiaViewSchema at runtime and optionally opens it immediately.RedDokiaController.registerView
resetLayoutpublic() => voidResets the workbench layout back to layout and clears persisted snapshot overrides.RedDokiaController.resetLayout
rootElementreadonlyHTMLElementRoot .reddokia-root DOM element created inside the host container.-
setEdgeBarLabelsVisiblepublic(visible) => voidShows or hides tool window name labels on the peripheral EdgeBar icon rails.RedDokiaController.setEdgeBarLabelsVisible
setGroupOptionspublic(groupId, options) => voidUpdates per-group chromeless header visibility (showHeader) or drop/close lock (locked) flags.RedDokiaController.setGroupOptions
setLayoutpublic(layout) => voidSwitches the active workbench layout to the given declarative layout schema.RedDokiaController.setLayout
setLocalepublic(locale) => voidChanges the active UI locale ('en', 'ko', or 'ja') at runtime.RedDokiaController.setLocale
setOptionspublic(nextProps) => voidUpdates workbench props dynamically without destroying or remounting views.-
setThemepublic(themeId) => voidSwitches the active workbench theme ('dark', 'light', or any custom theme ID registered in themes).RedDokiaController.setTheme
splitGrouppublic(groupId, direction, newViewId?) => voidSplits groupId (defaults to the active group when omitted) along direction ('horizontal' = right, 'vertical' = down), moving its active tab (or newViewId) when splittable.RedDokiaController.splitGroup
startExternalDragpublic(event, options) => voidStarts a PointerEvent drag-and-dock session from an external host DOM element (such as a widget palette or file list) using the native 5-zone dock overlay and hit-tester. Example chip.addEventListener('pointerdown', (e) => { controller.startExternalDrag(e, { viewId: 'widget-1', templateId: 'widget-template', title: 'Metrics Widget', params: { metric: 'fps' }, }); });RedDokiaController.startExternalDrag
toggleCollapseGrouppublic(groupId) => voidToggles the collapsed/expanded state of a docked group.RedDokiaController.toggleCollapseGroup
toggleEdgeBarpublic(edge) => voidToggles collapse/expand of the specified peripheral edge bar ('left', 'right', or 'bottom').RedDokiaController.toggleEdgeBar
toggleEdgeSlotpublic(slot) => voidToggles visibility of the tool panel bound to the specified peripheral RedDokiaEdgeSlot.RedDokiaController.toggleEdgeSlot
toggleLockGrouppublic(groupId?) => voidToggles the drop/close lock flag on groupId (defaults to the active group).RedDokiaController.toggleLockGroup
toggleMaximizeGrouppublic(groupId?) => voidToggles Zen Mode maximization on groupId (defaults to the currently active group).RedDokiaController.toggleMaximizeGroup
togglePinViewpublic(viewId) => voidToggles the pinned state of a tab within its host group.RedDokiaController.togglePinView
updateViewpublic(viewId, patch) => voidPatches mutable runtime metadata (title, badge, dirty, params, constraints, etc.) of a view.RedDokiaController.updateView