# cp.ui.GridElement.Builder

A `Builder` for `GridElement`s.

---

## API Overview
**Methods** - _API calls which can only be made on an object returned by a constructor_
 * [withColumnsOf](#withcolumnsof)
 * [withHeaderOf](#withheaderof)
 * [withRowsOf](#withrowsof)

---

## API Documentation

#### Methods

### [withColumnsOf](#withcolumnsof)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.GridElement.Builder:withColumnsOf(columnInit) -> cp.ui.GridElement.Builder`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Adds a `Column` initializer to the `GridElement` builder.                                                                     |
| **Parameters**                              | <ul><li>columnInit - A `Column` initializer.</li></ul> |
| **Returns**                                 | <ul><li>The `GridElement` builder.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/GridElement.lua line 52](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/GridElement.lua#L52) |

---

### [withHeaderOf](#withheaderof)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.GridElement.Builder:withHeaderOf(headerInit) -> cp.ui.GridElement.Builder`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Adds a `Header` initializer to the `GridElement` builder.                                                                     |
| **Parameters**                              | <ul><li>headerInit - A `Header` initializer.</li></ul> |
| **Returns**                                 | <ul><li>The `GridElement` builder.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/GridElement.lua line 32](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/GridElement.lua#L32) |

---

### [withRowsOf](#withrowsof)

|                                             |                                                                                     |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| **Signature**                               | `cp.ui.GridElement.Builder:withRowsOf(rowInit) -> cp.ui.GridElement.Builder`                                                                    |
| **Type**                                    | Method                                                                     |
| **Description**                             | Adds a `Row` initializer to the `GridElement` builder.                                                                     |
| **Parameters**                              | <ul><li>rowInit - A `Row` initializer.</li></ul> |
| **Returns**                                 | <ul><li>The `GridElement` builder.</li></ul>          |
| **Notes**                                   | None |
| **Examples**                                | None |
| **Source**                                  | [src/extensions/cp/ui/GridElement.lua line 42](https://github.com/CommandPost/CommandPost/blob/develop/src/extensions/cp/ui/GridElement.lua#L42) |

---

---

<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>
