# canReadCell

Synchronous permission callback determining whether a cell can be read. Use alongside server access control.

Canonical: https://grid.syidax.com/docs/options/canReadCell/

<a id="meaning"></a>

## What does this API do?

Synchronous permission callback determining whether a cell can be read. Use alongside server access control.

<a id="contract"></a>

## Exact input and result types

```typescript
canReadCell: CanReadCellFn
```

| Item | Value |
| --- | --- |
| JavaScript name | canReadCell |
| HTML attribute | can-read-cell |
| Default | undefined |
| Input type | CanReadCellFn |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="types"></a>

## Read related types

- [CanReadCellFn](https://grid.syidax.com/docs/types/CanReadCellFn.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Cell access control](https://grid.syidax.com/docs/features/rbac.md) — Cell read and edit policies restrict visible and editable values according to user roles. Hiding a column is different from enforcing data access.
