Tables / Reference
alerta.table.cell_set_bgcolor
TradingView-compatible spelling: table.cell_set_bgcolor, runs without warnings
Updates the background color of a table cell.
alerta.table.cell_set_bgcolor(table_id, column, row, bgcolor) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
table_id | string | Yes | — | ID of the table. |
column | int | Yes | — | Column index (0-based). |
row | int | Yes | — | Row index (0-based). |
bgcolor | string | Yes | — | Cell background color. |
Returns
voidExample
alerta.table.cell_set_bgcolor
var t = table.new(position.top_right, 1, 1)if barstate.islast table.cell(t, 0, 0, "Background color", text_color=color.white) table.cell_set_bgcolor(t, 0, 0, color.blue)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.