#cp.ui.GridElement
Abstract base class for AX
elements which form a grid, such as GridElement and Outline.
#Submodules
#API Overview
Functions - API calls offered directly by the extension
Constructors - API calls which return an object, typically one that offers API methods
Fields - Variables which can only be accessed from an object returned by a constructor
- columns
- columnsUI
- firstRow
- header
- headerUI
- lastRow
- rowsUI
- selectedColumns
- selectedColumnsUI
- selectedRows
- selectedRowsUI
- visibleColumns
- visibleColumnsUI
- visibleRows
- visibleRowsUI
Methods - API calls which can only be made on an object returned by a constructor
#API Documentation
#Functions
Signature | cp.ui.GridElement.matches(element) -> boolean |
Type | Function |
Description | Checks if the element is an GridElement . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 96 |
Signature | cp.ui.GridElement:withColumnsOf(columnInit) -> cp.ui.GridElement.Builder |
Type | Function |
Description | Returns a new Builder for GridElement s with the specified columnInit . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 86 |
Signature | cp.ui.GridElement:withHeaderOf(headerInit) -> cp.ui.GridElement.Builder |
Type | Function |
Description | Returns a new Builder for GridElement s with the specified headerInit . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 66 |
Signature | cp.ui.GridElement:withRowsOf(...) -> function(parent, uiFinder) -> GridElement |
Type | Function |
Description | A combinator that returns a function expecting a parent and uiFinder and returns a GridElement instance, with the arguments defining the Cell instances that make up the rows of the table. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 115 |
#Constructors
Signature | cp.ui.GridElement(parent, uiFinder, headerInit, rowInit, columnInit) -> cp.ui.GridElement |
Type | Constructor |
Description | Creates a new GridElement instance. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 131 |
#Fields
Signature | cp.ui.GridElement.columns <table of cp.ui.Column; live?; read-only> |
Type | Field |
Description | The list of Column s which are children of this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 260 |
Signature | cp.ui.GridElement.columnsUI <cp.prop: table of axuielement; live?; read-only> |
Type | Field |
Description | The list of axuielement s which are children of this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 253 |
Signature | cp.ui.GridElement.firstRow <cp.ui.Element> |
Type | Field |
Description | An Element of the rowInit type that will always point at the first row (if available). |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 181 |
Signature | cp.ui.GridElement.header <cp.ui.Element> |
Type | Field |
Description | The Element representing the AXHeader of the GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 167 |
Signature | cp.ui.GridElement.headerUI <cp.prop: axuielement; read-only; live> |
Type | Field |
Description | Returns the header UI element. |
Parameters |
|
Returns |
|
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 154 |
Signature | cp.ui.GridElement.lastRow <cp.ui.Element> |
Type | Field |
Description | An Element of the rowInit type that will always point at the last row (if available). |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 193 |
Signature | cp.ui.GridElement.rowsUI <cp.prop: table of axuielement; live?; read-only> |
Type | Field |
Description | The list of Row s which are children of this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 174 |
Signature | cp.ui.GridElement.selectedColumns <table of cp.ui.Column; live?; read-only> |
Type | Field |
Description | The list of Column s which are selected in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 274 |
Signature | cp.ui.GridElement.selectedColumnsUI <cp.prop: table of axuielement; live?> |
Type | Field |
Description | The list of axuielement AXColumn s which are selected in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 267 |
Signature | cp.ui.GridElement.selectedRows <table of cp.ui.Row; live?; read-only> |
Type | Field |
Description | The list of Row s which are selected in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 232 |
Signature | cp.ui.GridElement.selectedRowsUI <cp.prop: table of cp.ui.Row; live?> |
Type | Field |
Description | The list of Row s which are selected in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 223 |
Signature | cp.ui.GridElement.visibleColumns <table of cp.ui.Column; live?; read-only> |
Type | Field |
Description | The list of Column s which are visible in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 288 |
Signature | cp.ui.GridElement.visibleColumnsUI <cp.prop: table of axuielement; live?; read-only> |
Type | Field |
Description | The list of Column s which are visible in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 281 |
Signature | cp.ui.GridElement.visibleRows <table of cp.ui.Row; live?; read-only> |
Type | Field |
Description | The list of Row s which are visible in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 246 |
Signature | cp.ui.GridElement.visibleRowsUI <cp.prop: table of cp.ui.Row; live?; read-only> |
Type | Field |
Description | The list of Row s which are visible in this GridElement . |
Notes | None |
Source | src/extensions/cp/ui/GridElement.lua line 239 |
#Methods
Signature | cp.ui.GridElement:doSelectRow(path) -> [Statement](cp.rx.go.Statement.md) |
Type | Method |
Description | Selects the row at the sub-level named in the path table. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 452 |
Signature | cp.ui.GridElement:fetchColumn(columnsUI) -> table of cp.ui.Columns |
Type | Method |
Description | Returns a table of the same length as columnsUI . If provided items in the table are not valid columns in this table, then nil will be put in the matching index. Note that this will break the standard # /looping behaviour for tables at that point. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 308 |
Signature | cp.ui.GridElement:findCell(rowNumber, columnId) -> hs.axuielement | nil |
Type | Method |
Description | Finds a specific Cell. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 376 |
Signature | cp.ui.GridElement:findColumnIndex(id) -> number | nil |
Type | Method |
Description | Finds the Column Index based on an AXIdentifier ID. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 355 |
Signature | cp.ui.GridElement:row(index) -> cp.ui.Element | nil |
Type | Method |
Description | Returns an Element at the specified index . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 205 |
Signature | cp.ui.GridElement:selectRow(row) -> nil |
Type | Method |
Description | Attempts to select the provided cp.ui.Row . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 421 |
Signature | cp.ui.GridElement:selectRowAt(path) -> cp.ui.Row |
Type | Method |
Description | Selects the row at the sub-level named in the path table. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 439 |
Signature | cp.ui.GridElement:selectRows(rows) -> nil |
Type | Method |
Description | Attempts to select the provided list of cp.ui.Row s. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 395 |
Signature | cp.ui.GridElement:visitRow(path, actionFn) -> cp.ui.Row |
Type | Method |
Description | Visits the row at the sub-level named in the names table, and executes the actionFn . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/GridElement.lua line 341 |