# collabPersistence

Disables local collaboration persistence or uses IndexedDB. Does not replace server backups.

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

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

## What does this API do?

Disables local collaboration persistence or uses IndexedDB. Does not replace server backups.

API for Pro features: Real-time collaboration (existing Pro grade retained)

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

## Exact input and result types

```typescript
collabPersistence: 'none' | 'indexeddb'
```

| Item | Value |
| --- | --- |
| JavaScript name | collabPersistence |
| HTML attribute | collab-persistence |
| Default | 'none' |
| Input type | 'none' \| 'indexeddb' |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the collab-persistence attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

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

## Feature explanations and examples

- [Real-time collaboration](https://grid.syidax.com/docs/features/collaboration.md) — Collaboration shares edits, cursors, and presence among users in the same room. A room name alone does not automatically connect devices over the internet.
