# cp.ui.GridElement.OfRows

Processes the contents of the GridElement as a list of rows. Each of the defined Element initialisers will be used to create a cell within each Row.


# API Overview

Constructors - API calls which return an object, typically one that offers API methods

  • OfRows

Methods - API calls which can only be made on an object returned by a constructor

  • createRow
  • createRows

# API Documentation

# Constructors

# OfRows

Signature cp.ui.GridElement.OfRows(...) -> cp.ui.GridElement.OfRows
Type Constructor
Description Creates a new GridElement.OfRows instance.
Parameters
  • ... - The Cell initialisers.
Returns
  • A new GridElement.OfRows instance.
Notes None
Examples None
Source src/extensions/cp/ui/GridElement.lua line 505

# Methods

# createRow

Signature cp.ui.GridElement.OfRows:createRow(tbl, rowFinder) -> cp.ui.Row
Type Method
Description Creates a new Row instance.
Parameters
  • tbl - The GridElement instance.
  • rowFinder - a callable that will return the axuielementObject for the row.
Returns
  • The new Row instance.
Notes None
Examples None
Source src/extensions/cp/ui/GridElement.lua line 518

# createRows

Signature cp.ui.GridElement.OfRows:createRows(tbl, rowsFinder) -> table of cp.ui.Row
Type Method
Description Creates the Rows for the GridElement.
Parameters
  • tbl - The GridElement instance
  • rowsFinder - a callable that will return the a table of cp.ui.Row values.
Returns
  • A table of Rows.
Notes None
Examples None
Source src/extensions/cp/ui/GridElement.lua line 532