CellIndex

Table of contents

Defines coordinates of the TableView cell

type CellIndex struct {
    Row, Column int
}
Member Type Description
Row int Row index
Column int Column index

If the cell is not selected, then the values of the Row and Column fields will be less than 0.

In RowSelection mode, the value of the Column field is ignored. Also in this mode, the "current" property can be assigned a value of type int(row index).

func GetTableCurrent(view View, subviewID ...string) CellIndex

Returns the row and column index of the TableView selected cell/row. If there is no selected cell/row or the selection mode is NoneSelection (0), then a value of the row and column index less than 0 is returned. If the selection mode is RowSelection (2) then the returned column index is less than 0. If the second argument (subviewID) is not specified or is an empty string then a value from the first argument (view) is returned