Skip to main content

types.RuntimeTableCell#

Single cell in a RuntimeTable.cells array.

SYNTAX#

interface RuntimeTableCell { row: number; col: number; text: string; bgColor?: string; textColor?: string; textSize?: 'tiny' | 'small' | 'normal' | 'large'; align?: 'left' | 'center' | 'right'; }

ARGUMENTS#

  • row (number) — Zero-based row index. Must be less than RuntimeTable.rows.
  • col (number) — Zero-based column index. Must be less than RuntimeTable.cols.
  • text (string) — Displayed cell text.
  • bgColor (string) — Optional per-cell background color (CSS color string).
  • textColor (string) — Optional text color (CSS color string).
  • textSize (TableTextSize) — Optional preset text size: tiny | small | normal | large.
  • align ('left' | 'center' | 'right') — Optional horizontal text alignment within the cell.

RETURNS#

Type definition.

REMARKS#

textSize is the only text-size control in the scripting surface — plot series and entity labels have no font-size options. v1 does not support cell merging, tooltips, click handlers, or per-cell font family.

EXAMPLE#

{ row: 0, col: 1, text: '50100.25', bgColor: '#1f2937', textColor: '#26a69a', textSize: 'small', align: 'right' }

SEE ALSO#

types.RuntimeTable, types.TablePosition, types.TableTextSize