{/* Do not edit this file. It is automatically generated by API Documenter. */}


## ClickData

Information model of the clicked item

**Signature:**

```typescript
export interface ClickData
```

## Remarks

This is the information model for items used in click-related callbacks such as [GridBase.onMenuItemClicked](/refs/Class/GridBase#onmenuitemclicked) or [GridBase.onCellClicked](/refs/Class/GridBase#oncellclicked).

## Example


```js
gridView.onMenuItemClicked = function (grid, item, clickData) {
      console.log(item.label + "was clicked.");
      console.log("cellType is: " + clickData.cellType);
};
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [cellType](/refs/Interface/ClickData#celltype) | [GridCellType](/refs/realgrid#gridcelltype) | Type of cell clicked |
| [column](/refs/Interface/ClickData#column) | string | Column of clicked cell |
| [dataRow](/refs/Interface/ClickData#datarow) | number | If the clicked cell is a DataCell, dataRow |
| [far](/refs/Interface/ClickData#far) | boolean | Whether the scroll button is up, down, or left and right |
| [field](/refs/Interface/ClickData#field) | number | Field of clicked target |
| [fieldName](/refs/Interface/ClickData#fieldname) | string | Field name of clicked target |
| [groupLevel](/refs/Interface/ClickData#grouplevel) | number | Group level of clicked cell |
| [index](/refs/Interface/ClickData#index) | number | Index of clicked cell |
| [itemIndex](/refs/Interface/ClickData#itemindex) | number | The order in which the clicked object is located |
| [subType](/refs/Interface/ClickData#subtype) | [GridCellType](/refs/realgrid#gridcelltype) | Subtype of clicked object |
| [target](/refs/Interface/ClickData#target) | HTMLElement | When clicking on the HtmlElement of TemplateCellRenderer target |
| [type](/refs/Interface/ClickData#type) | string | If the cell is a DataCell and the clicked element is an item of the renderer, the type of the renderer |
| [url](/refs/Interface/ClickData#url) | string | When clicking A Tag of linkCellRenderer, url |
| [value](/refs/Interface/ClickData#value) | any | Data value when the type of the clicked cell is data |
| [vertical](/refs/Interface/ClickData#vertical) | boolean | Whether the scrollbar is vertical |

## Properties Desc

### cellType

Type of cell clicked

`Type` - [GridCellType](/refs/realgrid#gridcelltype)

<hr/>

### column

Column of the clicked cell

`Type` - string

<hr/>

### dataRow

dataRow if the clicked cell is a DataCell

`Type` - number

<hr/>

### far

Whether the scroll button is up/down or left/right

`Type` - boolean

**Remarks:**

If it is a right or bottom button, `true`{/* */}

<hr/>

### field

Field of clicked target

`Type` - number

<hr/>

### fieldName

Field name of clicked target

`Type` - string

<hr/>

### groupLevel

Group level of clicked cell

`Type` - number

<hr/>

### index

Index of the clicked cell

`Type` - number

**Remarks:**

Indexes for footer, summary, etc.

<hr/>

### itemIndex

The order in which the clicked object is located

`Type` - number

<hr/>

### subType

Subtype of clicked object

`Type` - [GridCellType](/refs/realgrid#gridcelltype)

<hr/>

### target

When clicking on the HtmlElement of TemplateCellRenderer target

`Type` - HTMLElement

<hr/>

### type

If the cell is a DataCell and the element clicked is an item of the renderer, the type of the renderer

`Type` - string

<hr/>

### url

URL when clicking A Tag of linkCellRenderer

`Type` - string

<hr/>

### value

Data value when the type of the clicked cell is data

`Type` - any

<hr/>

### vertical

Whether the scrollbar is vertical

`Type` - boolean

**Remarks:**

If it is a vertical scrollbar, `true`{/* */}

<hr/>