Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
79 lines (64 loc) · 5.79 KB

cp.ui.Row.md

File metadata and controls

79 lines (64 loc) · 5.79 KB

docs » cp.ui.Row


Represents an AXRow axuielement.

API Overview

API Documentation

Constructors

Signature cp.ui.Row(parent, uiFinder) -> cp.ui.Row
Type Constructor
Description Creates a new Row instance with the specified parent and uiFinder.
Parameters
  • parent - the parent Element.
  • uiFinder - a function or cp.prop containing the axuielement
Returns
  • The new Row.

Fields

Signature cp.ui.Row.disclosing <cp.prop: boolean>
Type Field
Description Indicates if the Row is disclosing other Rows.
Signature cp.ui.Row.disclosureLevel <cp.prop: number; read-only>
Type Field
Description The depth of disclosure. 0 is the top level.
Signature cp.ui.Row.index <cp.prop: number; read-only>
Type Field
Description The numeric index of this row in the overall container, with 0 being the first item.
Signature cp.ui.Row.selected <cp.prop: boolean>
Type Field
Description Indicates if the row is currently selected. May be set.

Methods

Signature cp.ui.Row:disclosedByRow() -> cp.ui.Row
Type Method
Description The Row which is disclosing this Row.
Signature cp.ui.Row:disclosedRows() -> table of cp.ui.Row or nil
Type Method
Description If available, returns a table of Rows that are disclosed by this Row.
Returns
  • The table of Rows, or nil.
Signature cp.ui.Row.matches(element) -> boolean
Type Method
Description Checks if the element is a Row.
Parameters
  • element - the axuielement to check.
Returns
  • true if it matches, otherwise false.