ui.showGridViewerDialog
Shows a grid viewer dialog containing the specified cells data.
caption string (window title)
cells 2D array (in format [yRow][xCol])
hasHeaderRow boolean (place first row in column headers)
dialogWindowHandle integer
: 1
local cells = data.createGrid()
data.setCell(cells, 1, 1, "Col 1")
data.setCell(cells, 2, 1, "Col 2")
data.setCell(cells, 1, 2, "Apple")
data.setCell(cells, 2, 2, "Banana")
data.setCell(cells, 1, 3, "Red/green")
data.setCell(cells, 2, 3, "Yellow")
ui.showGridViewerDialog("Fruit Data", cells, true)
Generated on the 26 June 2024 at 22:01:29 (UK Time)