Lipi Reference
Lipi

Functions

table.cell_set_text_valign()

Sets vertical text alignment of an existing cell: top, center, or bottom.

Syntax

                table.cell_set_text_valign(series table id, series int column, series int row, series string text_valign) → void
              

Arguments

id required series table Table object.
column required series int 0-based column.
row required series int 0-based row.
text_valign required series string top, center, or bottom.

Return Type

void

Example


          //@lipi=2
indicator("table.cell_set_text_valign Example")
if barstate.islast {
    t = table.new(position.top_right, 1, 1)
    table.cell(t, 0, 0, text="Hello")
    table.cell_set_text_valign(t, 0, 0, "top")
}