Skip to main content

types.RuntimeTable#

Screen-space dashboard table, corner-anchored to one of nine positions (top_left, top_center, top_right, middle_left, ..., bottom_right).

SYNTAX#

interface RuntimeTable { id: string; position: TablePosition; rows: number; cols: number; cells: RuntimeTableCell[]; bgColor?: string; borderColor?: string; borderWidth?: number; colWidths?: number[]; rowHeight?: number; pane?: 'main' | 'own'; margin?: number; }

ARGUMENTS#

  • id (string) — Unique table identifier.
  • position (TablePosition) — Anchor corner: top_left | top_center | top_right | middle_left | middle_center | middle_right | bottom_left | bottom_center | bottom_right.
  • rows (number) — Number of rows.
  • cols (number) — Number of columns.
  • cells (RuntimeTableCell[]) — Per-cell content: { row, col, text, bgColor?, textColor?, textSize?, align? }.
  • bgColor (string) — Optional background color.
  • borderColor (string) — Optional border color.
  • borderWidth (number) — Optional border width in pixels.
  • colWidths (number[]) — Optional per-column pixel widths.
  • rowHeight (number) — Optional row height in pixels.
  • pane ('main' | 'own') — Anchor pane. main (default) for the price pane; own for the indicator's own sub-pane.
  • margin (number) — Optional pixel margin from the anchor corner.

RETURNS#

Type definition.

REMARKS#

v1 does not support cell merging (colspan/rowspan), per-bar animation, tooltips, embedded sparklines, drag-to-reorder, CSV export, column sorting, click handlers, per-cell font family, or scroll/virtualization.

EXAMPLE#

return {
  name: 'Stats', pane: 'overlay',
  tables: [{
    id: 'stats', position: 'top_right', rows: 2, cols: 2,
    cells: [
      { row: 0, col: 0, text: 'High' }, { row: 0, col: 1, text: '50100' },
      { row: 1, col: 0, text: 'Low'  }, { row: 1, col: 1, text: '49500' }
    ]
  }]
};

SEE ALSO#

types.RuntimeOutput, types.RuntimeTableCell, types.TablePosition, types.TableTextSize