# cp.ui.OldOutline

Represents an `AXOutline` `axuielement`.

---

## API Overview
**Functions** - _API calls offered directly by the extension_
 * [matches](#matches)

**Constructors** - _API calls which return an object, typically one that offers API methods_
 * [OldOutline](#oldoutline)

**Methods** - _API calls which can only be made on an object returned by a constructor_
 * [childrenUI](#childrenui)
 * [columns](#columns)
 * [columnsUI](#columnsui)
 * [createColumn](#createcolumn)
 * [createRow](#createrow)
 * [fetchColumn](#fetchcolumn)
 * [fetchRow](#fetchrow)
 * [fetchRows](#fetchrows)
 * [filterRows](#filterrows)
 * [rows](#rows)
 * [rowsUI](#rowsui)

---

## API Documentation

#### Functions

### [matches](#matches)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline.matches(element) -> boolean`                                                                    |
| **Type**                                    | Function                                                                     |
| **Description**                             | Checks if the `element` is an `Outline`.                                                                     |
| **Parameters**                              | <ul><li>element - An element to check</li></ul> |
| **Returns**                                 | <ul><li>A boolean</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 89](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L89) |

---

#### Constructors

### [OldOutline](#oldoutline)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline(parent, uiFinder) -> cp.ui.OldOutline`                                                                    |
| **Type**                                    | Constructor                                                                     |
| **Description**                             | Creates a new `Outline` with the specified `parent` and `uiFinder`.                                                                     |
| **Parameters**                              | <ul><li>parent - The parent instance.</li><li>uiFinder - A `function` or a `cp.prop` which will return the `AXOutline` `axuielement`.</li></ul> |
| **Returns**                                 | <ul><li>The new `Outline` instance.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 102](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L102) |

---

#### Methods

### [childrenUI](#childrenui)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:childrenUI() -> table`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Provides a `table` containing the `axuielement`s which are children of the outline.                                                                     |
| **Parameters**                              | <ul><li>None</li></ul> |
| **Returns**                                 | <ul><li>A table</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 118](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L118) |

---

### [columns](#columns)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:columns() -> table of cp.ui.Columns`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Returns the list of [Column](cp.ui.OldColumn.md)s in this `Outline`.                                                                     |
| **Parameters**                              | <ul><li>None</li></ul> |
| **Returns**                                 | <ul><li>A table</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 162](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L162) |

---

### [columnsUI](#columnsui)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:columnsUI() -> table`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Provides a `table` containing the `axuielement`s which are columns of the outline.                                                                     |
| **Parameters**                              | <ul><li>None</li></ul> |
| **Returns**                                 | <ul><li>A Table</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 131](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L131) |

---

### [createColumn](#createcolumn)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:createColumn(columnUI) -> cp.ui.OldColumn`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Attempts to create a new [Column](cp.ui.OldColumn.md) with the provided `columnUI` `axuielement`. If there is a problem, an `error` is thrown.                                                                     |
| **Parameters**                              | <ul><li>columnUI - the `AXColumn` `axuielement` to create a [Column](cp.ui.OldColumn.md) for.</li></ul> |
| **Returns**                                 | <ul><li>The [Column](cp.ui.OldColumn.md) or an error if a problem occurred.</li></ul>          |
| **Notes**                                   | <ul><li>Subclasses which want to provide a custom [Column](cp.ui.OldColumn.md) implementation should override this method.</li></ul> |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 144](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L144) |

---

### [createRow](#createrow)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:createRow(rowUI) -> cp.ui.OldRow`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Attempts to create a new [Row](cp.ui.OldRow.md) with the provided `rowUI` `axuielement`. If there is a problem, an `error` is thrown.                                                                     |
| **Parameters**                              | <ul><li>rowUI - the `AXRow` `axuielement` to create a [Row](cp.ui.OldRow.md) for.</li></ul> |
| **Returns**                                 | <ul><li>The [Row](cp.ui.OldRow.md) or an error if a problem occurred.</li></ul>          |
| **Notes**                                   | <ul><li>Subclasses which want to provide a custom [Row](cp.ui.OldRow.md) implementation should override this method.</li></ul> |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 218](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L218) |

---

### [fetchColumn](#fetchcolumn)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:fetchColumn(columnsUI) -> table of cp.ui.Columns`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Returns a `table` of the same length as `columnsUI`.                                                                     |
| **Parameters**                              | <ul><li>columnsUI - The list of `AXColumn` `axuielement`s to find.</li></ul> |
| **Returns**                                 | <ul><li>A `table` with the same number of elements, containing the matching [Column](cp.ui.OldColumn.md) instances.</li></ul>          |
| **Notes**                                   | <ul><li>If provided items in the table are not valid columns in this table, then `nil` will be put in the matching index.</li><li>Note that this will break the standard `#`/looping behaviour for tables at that point.</li></ul> |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 188](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L188) |

---

### [fetchRow](#fetchrow)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:fetchRow(rowUI) -> cp.ui.OldRow or nil`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Returns the [Row](cp.ui.OldRow.md) that represents the provided `rowUI`, if it is actually present in the `Outline`.                                                                     |
| **Parameters**                              | <ul><li>rowUI - The `axuielement` for the `AXRow` to find a [Row](cp.ui.OldRow.md) for.</li></ul> |
| **Returns**                                 | <ul><li>The [Row](cp.ui.OldRow.md), or `nil` if the `rowUI` is not in this `Outline`.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 248](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L248) |

---

### [fetchRows](#fetchrows)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:fetchRows(rowsUI) -> table of cp.ui.OldRows`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Returns a `table` of the same length as `rowsUI`.                                                                     |
| **Parameters**                              | <ul><li>rowsUI - The list of `AXRow` `axuielement`s to find.</li></ul> |
| **Returns**                                 | <ul><li>A `table` with the same number of elements, containing the matching [Row](cp.ui.OldRow.md) instances.</li></ul>          |
| **Notes**                                   | <ul><li>If provided items in the table are not valid rows in this table, then `nil` will be put in the matching index.</li><li>Note that this will break the standard `#`/looping behaviour for tables at that point.</li></ul> |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 261](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L261) |

---

### [filterRows](#filterrows)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:filterRows(matcherFn) -> table of cp.ui.OldRows or nil`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Returns a table only containing [Row](cp.ui.OldRow.md)s which pass the predicate `matcherFn`. The function is passed the row and returns a boolean.                                                                     |
| **Parameters**                              | <ul><li>matcherFn	- the `function` that will accept a [Row](cp.ui.OldRow.md) and return a `boolean`.</li></ul> |
| **Returns**                                 | <ul><li>A `table` of [Row](cp.ui.OldRow.md)s, or `nil` if no UI is currently available.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 278](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L278) |

---

### [rows](#rows)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:rows() -> table of cp.ui.OldRow or nil`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Provides a `table` with the list of `cp.ui.OldRow` elements for the rows.                                                                     |
| **Parameters**                              | <ul><li>None</li></ul> |
| **Returns**                                 | <ul><li>A table containing the list of [Row](cp.ui.OldRow.md)s in the `Outline`, or `nil` if the `Outline` is not presently available.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 235](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L235) |

---

### [rowsUI](#rowsui)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.OldOutline:rowsUI() -> table of axuielement`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Provides a `table` containing the `axuielement`s which are rows in the outline.                                                                     |
| **Parameters**                              | <ul><li>None</li></ul> |
| **Returns**                                 | <ul><li>A table</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/OldOutline.lua line 205](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/OldOutline.lua#L205) |

---

---

<script src="https://giscus.app/client.js"
        data-repo="CommandPost/CommandPost"
        data-repo-id="MDEwOlJlcG9zaXRvcnk3NDY0NTk2NQ=="
        data-category="Website Discussion"
        data-category-id="DIC_kwDOBHMBzc4CXFFA"
        data-mapping="pathname"
        data-strict="0"
        data-reactions-enabled="1"
        data-emit-metadata="0"
        data-input-position="bottom"
        data-theme="dark"
        data-lang="en"
        crossorigin="anonymous"
        async>
</script>
