Skip to content

API Reference

Quick reference tables for all public classes in the Dashboard Editor package.

Layout Model

ClassDescriptionReference
DashboardLayoutTop-level container: rows, version, metadata. Max 25 rows.Layout API
DashboardRowHorizontal container for 1-6 columns. Flex-based sizing.Layout API
DashboardColumnSlot within a row that holds zero or one component.Layout API
ComponentInstanceComponent instance with key, title, and PropertyCollection.Layout API
DashboardLayoutConstantsCentral constants for spacing, flex, and sizing.Layout API

Component System

ClassDescriptionReference
ComponentDescriptorDeclarative component definition with callbacks.Components API
DashboardComponentConfigurationAbstract base class for components (prefer ComponentDescriptor).Components API
ComponentCategoryMetadata for organizing components in the palette.Components API
DashboardDescriptorNamed group of components for a product/domain.Components API
DashboardEditorRegistryScoped registry for descriptors and components.Components API

Engine and Commands

ClassDescriptionReference
DashboardEngineMobX-based state kernel with command execution.Engine API
DashboardEngineApiForward declaration interface for extensions.Engine API
DashboardCommandAbstract reversible command (execute/undo).Engine API
CommandHistoryUndo/redo stack with configurable max size.Engine API
DashboardEditorControllerEditor facade composing engine with extensions.Engine API

Events

ClassDescriptionReference
DashboardEventAbstract base for all engine events.Engine API
DashboardLayoutChangedEmitted when layout is updated (any reason).Engine API
DashboardCommandExecutedEmitted when a command is first executed.Engine API
DashboardCommandUndoneEmitted when a command is undone.Engine API
DashboardCommandRedoneEmitted when a command is redone.Engine API
DashboardBatchStartedEmitted when a batch operation begins.Engine API
DashboardBatchEndedEmitted when a batch operation ends.Engine API

Extensions

ClassIDDescriptionReference
DashboardExtension--Abstract extension interface.Engine API
DashboardHistoryExtensiondashboard-historyUndo/redo via CommandHistory.Engine API
DashboardPersistenceExtensiondashboard-persistenceLayout JSON serialization, direct load, and dirty tracking.Engine API
DashboardSelectionExtensiondashboard-selectionCell, row, and panel selection state.Engine API
DashboardAnalyticsExtensiondashboard-analyticsAnalytics tracking for editor actions.Engine API

Commands

CommandDescription
AddRowCommandAdd a row at a position
RemoveRowCommandRemove a row
ReorderRowsCommandMove a row to a new position
SplitRowCommandReplace columns with N equal columns
UpdateRowTitleCommandChange or clear row title
UpdateRowHeightCommandSet row height in pixels
UpdateRowViewportFractionCommandSet viewport-relative row height
AddColumnCommandAdd an empty column to a row
RemoveColumnCommandRemove a column from a row
ReorderColumnsCommandReorder columns within a row
UpdateColumnFlexCommandChange a single column's flex
ResizeAdjacentColumnsCommandResize two adjacent columns together
UpdateRowFlexCommandUpdate flex for all columns in a row
AddComponentCommandPlace a component in a column
RemoveComponentCommandClear a column's component
ReplaceComponentCommandReplace one component with another
SwapComponentsCommandSwap components between two columns
DuplicateComponentCommandCopy component to nearest empty slot
UpdateComponentConfigCommandUpdate a component's properties
UpdateDashboardMetadataCommandPatch dashboard metadata

Data Sources and Charts

ClassDescription
ChartDataSourceAbstract interface for data fetching
ChartDataSourceRegistrySingleton registry for static, API, and app-provided chart sources
ApiChartDataSourceHTTP data source with nested JSON support
StaticChartDataSourceStatic JSON data source for charts
DataPointUniversal data model (label, value, series)
ChartDataData + chart type with validation
ChartTypeEnum: pie, donut, bar, stackedBar, groupedBar, line, multiLine, area, sparkline, gauge
ChartFieldMappingMaps source fields to chart dimensions
ChartFieldProviderInterface for field suggestions
ChartFieldProviderRegistryOptional singleton registry for chart field suggestions
EntityTypeProviderRegistryOptional singleton registry for entity type dropdowns
BaseChartRendererAbstract renderer with color palette and legend
ChartRendererFactorySingleton factory for renderer lookup
DashboardDataStoreMobX store for data fetching and polling
ApiDataSourceREST data source using vyuh.network

Editor UI

ClassDescription
DashboardEditorCore editor widget with canvas, palette, and config panels
DashboardDesignerTabPlug-and-play editor shell that wraps DashboardEditor
DashboardViewRead-only runtime dashboard renderer
DashboardEditorControllerFacade composing engine, extensions, and editor state
PaletteVisibilityControllerControls floating palette collapsed/pinned state

Type Aliases

AliasSignature
ComponentBuilderWidget Function(BuildContext, PropertyCollection)
PropertiesFactoryPropertyCollection Function()
ConfigPanelBuilderWidget? Function(BuildContext, PropertyCollection)
ThumbnailBuilderWidget? Function(BuildContext)

Next Steps