# GridViewItemArgs

Interface · extends [`ContainerArgs`](https://api.playcanvas.com/pcui/interfaces/ContainerArgs.md)

Source: https://github.com/playcanvas/pcui/blob/77ed2b8ba8660c9644049b0d1942652721e7a6c4/src/components/GridViewItem/index.ts#L19

The arguments for the [GridViewItem](https://api.playcanvas.com/pcui/classes/GridViewItem.md) constructor.

## Properties

### allowSelect

```ts
allowSelect?: boolean
```

If `true`, allow selecting the item. Defaults to `true`.

### selected

```ts
selected?: boolean
```

Whether the item is selected.

### tabIndex

```ts
tabIndex?: number
```

Sets the tabIndex of the [GridViewItem](https://api.playcanvas.com/pcui/classes/GridViewItem.md). Defaults to 0.

### text

```ts
text?: string
```

The text of the item. Defaults to ''.

### type

```ts
type?: string
```

The type of the [GridViewItem](https://api.playcanvas.com/pcui/classes/GridViewItem.md). Can be `null` or 'radio'.

## Inherited from [ContainerArgs](https://api.playcanvas.com/pcui/interfaces/ContainerArgs.md)

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `children?: ReactNode`
- `class?: string | string[]`
- `dom?: string | HTMLElement`
- `enabled?: boolean`
- `error?: boolean`
- `flex?: boolean`
- `flexBasis?: string | number`
- `flexDirection?: string`
- `flexGrow?: string | number`
- `flexShrink?: string | number`
- `flexWrap?: string`
- `grid?: boolean`
- `height?: number`
- `hidden?: boolean`
- `id?: string`
- `ignoreParent?: boolean`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: unknown) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `onResize?: () => void`
- `parent?: Element`
- `readOnly?: boolean`
- `resizable?: string`
- `resizeMax?: number`
- `resizeMin?: number`
- `scrollable?: boolean`
- `style?: string`
- `width?: number`
