cp.ui.Table.cellTextValue(cell) -> boolean
cell
- The cell to checkcp.ui.Table.cellTextValueIs(cell, value) -> boolean
value
.cell
- The cell to checkvalue
- The text value to compare.true
if the cell text value equals the provided value
.cp.ui.Table.discloseRow(row) -> boolean
row
- The row to disclosetrue
if the row is disclosable and is now expanded.cp.ui.Table.findRow(rows, names) -> axuielement
names
table and returns it.rows
- The array of rows to process.names
- The array of names to navigate downnil
if not.cp.ui.Table.is(thing) -> boolean
thing
is a Table
.thing
- The thing to checktrue
if the thing is a Table
instance.cp.ui.Table.matches(element)
element
- The element to check.true
if it matches.cp.ui.Table.matchesContent(element) -> boolean
element
is a valid table content element.element
- The element to checktrue
if the element is a valid content element.cp.ui.Table.visitRow(rows, names) -> axuielement
names
table.rows
- The array of rows to process.names
- The array of names to navigate downnil
if not.cp.ui.Table(parent, uiFinder) -> self
parent
- The parent object.uiFinder
- A function
or cp.prop
which will return the axuielement
that this table represents.Table
instance.cp.ui.Table.contentUI <cp.prop: hs._asm.axuielement; read-only>
axuielement
that contains the actual rows.cp.ui.Table.horizontalScrollBarUI <cp.prop: hs._asm.axuielement; read-only>
cp.ui.Table.isFocused <cp.prop: boolean; read-only>
true
if the table is focused by the user.cp.ui.Table.verticalScrollBarUI <cp.prop: hs._asm.axuielement; read-only>
cp.ui.Table:columnsUI() -> table of axuielements | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Return a list of column headers, if present. | | Parameters |nil
is returned.cp.ui.Table:deselectAll(rowUI) -> boolean
rowsUI
is nil
, then all rows will be deselected.hs._asm.axuielement
objects for the rows you want to deselect.cp.ui.Table:deselectRow(rowUI) -> boolean
hs._asm.axuielement
object of the row you want to deselect.cp.ui.Table:deselectRowAt(index) -> boolean
cp.ui.Table:findCellUI(rowNumber, columnId) ->
hs._asm.axuielement | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Finds a specific Cell UI. | | Parameters |hs._asm.axuielement
object for the cell, or nil
if the cell cannot be found.cp.ui.Table:findColumnIndex(id) -> number | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Finds the Column Index based on an AXIdentifier
ID. | | Parameters |AXIdentifier
of the column index you want to find.nil
if no index can be found.cp.ui.Table:loadLayout(layout) -> none
cp.ui.Table:saveLayout()
.cp.ui.Table:rowsUI([filterFn]) -> table of axuielements | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Returns the list of rows in the table. An optional filter function may be provided. | | Parameters |filterFn
- An optional function that will be called to check if individual rows should be included. If not provided, all rows are returned.nil
.cp.ui.Table:saveLayout() -> table
cp.ui.Table:selectAll(rowUI) -> boolean
rowsUI
is nil
, then all rows will be selected.hs._asm.axuielement
objects for the rows you want to select.cp.ui.Table:selectedRowsUI() -> table of axuielements | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Return a table of selected row UIs. | | Parameters |hs._asm.axuielement
objects, or nil
if none could be found.cp.ui.Table:selectRow(rowUI) -> boolean
hs._asm.axuielement
object of the row you want to select.cp.ui.Table:selectRowAt(index) -> boolean
cp.ui.Table:showRow(rowUI) -> boolean
hs._asm.axuielement
object of the row you want to show.cp.ui.Table:showRowAt(index) -> boolean
cp.ui.Table:toCSV() -> string | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Gets the contents of the table and formats it as a CSV string. | | Parameters |nil
if an error occurs.cp.ui.Table:topRowsUI(filterFn) -> table of axuielements | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Returns a list of top-level rows in the table. An optional filter function may be provided. | | Parameters |filterFn
- An optional function that will be called to check if individual rows should be included. If not provided, all rows are returned.nil
.cp.ui.Table:viewFrame() -> hs.geometry rect