---
title: "init(text:imageGridElements:allowsMultipleLines:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cplistimagerowitem/init(text:imagegridelements:allowsmultiplelines:)"
---

# init(text:imageGridElements:allowsMultipleLines:)

Initialize a list image row item with a text string, an array of @c CPListImageRowItemImageGridElement and a boolean to allow multiple lines in this row.

## Declaration

```swift
init(text: String?, imageGridElements elements: [CPListImageRowItemImageGridElement], allowsMultipleLines: Bool)
```

## Parameters

- `text`: The text visible at the top of the cell.
- `elements`: The list of @c CPListImageRowItemImageGridElement elements visible below the text.
- `allowsMultipleLines`: Determines if the elements could be visible on more than a single line.

## Discussion

Discussion If a nil @c text property is provided the cell will resize accordingly to hide the title.
