# FlashingCellApi

Canonical page: https://www.adaptabletools.com/docs/reference/flashingcellapi

Flashing Cell definitions, and flashing a cell when its value changes.

```ts title="TypeScript"
export interface FlashingCellApi 
```

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [addFlashingCellDefinition(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#addflashingcelldefinition) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Adds a Flashing Cell Definition to State |
| [addFlashingCellDefinitions(flashingCellDefinitions)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#addflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Adds provided Flashing Cell Definitions |
| [clearAllFlashingCells()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#clearallflashingcells) | `void` | Clears all Cells and Rows which have been flashed (primarily used if duration is &#39;Always&#39;) |
| [deleteFlashingCellDefinition(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#deleteflashingcelldefinition) | `void` | Deletes a Flashing Cell |
| [editFlashingCellDefinition(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#editflashingcelldefinition) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Edits Flashing Cell Definition in State with given one |
| [editFlashingCellDefinitions(flashingCellDefinitions)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#editflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Edits provided Flashing Cell Definitions |
| [findFlashingCellDefinitions(flashingCellLookupCriteria)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#findflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Find all Flashing Cell Definitions which match the given criteria |
| [getActiveFlashingCellDefinitions()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getactiveflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Retrieves all active (non-suspended) cell Definitions in Flashing Cell State |
| [getFlashingCellDefinitionById(id)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getflashingcelldefinitionbyid) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Retrieves Flashing Cell Definition by the technical ID (from `FlashingCellState`) |
| [getFlashingCellDefinitionByName(name)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getflashingcelldefinitionbyname) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)` \| undefined` | Retrieves a Flashing Cell Definition by its Name |
| [getFlashingCellDefinitions()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Retrieves all Flashing Cell Definitions in Flashing Cell State |
| [getFlashingCellFlashTarget(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getflashingcellflashtarget) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`['FlashTarget']` | Returns `FlashTarget` of the given Flashing Cell Definition |
| [getFlashingCellState()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getflashingcellstate) | [`FlashingCellState`](https://www.adaptabletools.com/docs/reference/flashingcellstate.md) | Retrieves Flashing Cell section from Adaptable State |
| [getSuspendedFlashingCellDefinitions()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#getsuspendedflashingcelldefinitions) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Retrieves all suspended Cell Definitions in Flashing Cell State |
| [isAnyFlashingCellActive()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#isanyflashingcellactive) | `boolean` | Is there any cells/rows currently being flashed |
| [setFlashingCellDefinitions(flashingCellDefinitions)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#setflashingcelldefinitions) | `void` | Sets a collection of Flashing Cell Definitions into State |
| [showFlashingCell(flashingCellToShow)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#showflashingcell) | `void` | Evaluates the given Flashing Cell Definition and flashes the correspondent cells/rows |
| [suspendAllFlashingCellDefinition()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#suspendallflashingcelldefinition) | `void` | Suspends all FlashingCell Definitions |
| [suspendFlashingCellDefinition(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#suspendflashingcelldefinition) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Suspends a Flashing Cell Definition |
| [unSuspendAllFlashingCellDefinition()](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#unsuspendallflashingcelldefinition) | `void` | Activates all suspended Flashing Cell Definition |
| [unSuspendFlashingCellDefinition(flashingCellDefinition)](https://www.adaptabletools.com/docs/reference/flashingcellapi.md#unsuspendflashingcelldefinition) | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Activates a suspended Flashing Cell Definition |

## Method Details

### addFlashingCellDefinition

Adds a Flashing Cell Definition to State

```ts title="TypeScript"
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Flashing Cell Definition to Add |

###### Returns

 The Flashing Cell Definition that was added

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)

### addFlashingCellDefinitions

Adds provided Flashing Cell Definitions

```ts title="TypeScript"
addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinitions | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Flashing Cell Definition to Add |

###### Returns

 Flashing Cell Definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### clearAllFlashingCells

Clears all Cells and Rows which have been flashed (primarily used if duration is &#39;Always&#39;)

```ts title="TypeScript"
clearAllFlashingCells(): void;
```

###### Returns

`void`

### deleteFlashingCellDefinition

Deletes a Flashing Cell

```ts title="TypeScript"
deleteFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | flashing cell to delete |

###### Returns

`void`

### editFlashingCellDefinition

Edits Flashing Cell Definition in State with given one

```ts title="TypeScript"
editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Flashing Cell Definition to Edit |

###### Returns

 flashing definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)

### editFlashingCellDefinitions

Edits provided Flashing Cell Definitions

```ts title="TypeScript"
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinitions | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Flashing Cell Definitions to Edit |

###### Returns

 Flashing Cell definitions

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### findFlashingCellDefinitions

Find all Flashing Cell Definitions which match the given criteria

```ts title="TypeScript"
findFlashingCellDefinitions(flashingCellLookupCriteria: AdaptableObjectLookupCriteria): FlashingCellDefinition[];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellLookupCriteria | [`AdaptableObjectLookupCriteria`](https://www.adaptabletools.com/docs/reference/adaptableobjectlookupcriteria.md) | lookup criteria |

###### Returns

 The Flashing Cell Definitions that match

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### getActiveFlashingCellDefinitions

Retrieves all active (non-suspended) cell Definitions in Flashing Cell State

```ts title="TypeScript"
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
```

###### Returns

 flashing cell definitions

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### getFlashingCellDefinitionById

Retrieves Flashing Cell Definition by the technical ID (from `FlashingCellState`)

```ts title="TypeScript"
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| id | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`['Uuid']` | Flashing Cell Definition Id |

###### Returns

 Flashing Cell Definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)

### getFlashingCellDefinitionByName

Retrieves a Flashing Cell Definition by its Name

```ts title="TypeScript"
getFlashingCellDefinitionByName(name: string): FlashingCellDefinition | undefined;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| name | `string` | Name of the Flashing Cell Definition |

###### Returns

 Flashing Cell Definition or undefined if not found

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)` | undefined`

### getFlashingCellDefinitions

Retrieves all Flashing Cell Definitions in Flashing Cell State

```ts title="TypeScript"
getFlashingCellDefinitions(): FlashingCellDefinition[];
```

###### Returns

 All Flashing Cell Definitions in Flashing Cell State

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### getFlashingCellFlashTarget

Returns `FlashTarget` of the given Flashing Cell Definition

```ts title="TypeScript"
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Flashing Cell Definition to check |

###### Returns

 `FlashTarget` of the given Flashing Cell Definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`['FlashTarget']`

### getFlashingCellState

Retrieves Flashing Cell section from Adaptable State

```ts title="TypeScript"
getFlashingCellState(): FlashingCellState;
```

###### Returns

 Flashing Cell state

[`FlashingCellState`](https://www.adaptabletools.com/docs/reference/flashingcellstate.md)

### getSuspendedFlashingCellDefinitions

Retrieves all suspended Cell Definitions in Flashing Cell State

```ts title="TypeScript"
getSuspendedFlashingCellDefinitions(): FlashingCellDefinition[];
```

###### Returns

 flashing cell definitions

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]`

### isAnyFlashingCellActive

Is there any cells/rows currently being flashed

```ts title="TypeScript"
isAnyFlashingCellActive(): boolean;
```

###### Returns

 `true` when there any cells/rows currently being flashed

`boolean`

### setFlashingCellDefinitions

Sets a collection of Flashing Cell Definitions into State

```ts title="TypeScript"
setFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinitions | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)`[]` | Flashing Cell Definitions to Add to State |

###### Returns

`void`

### showFlashingCell

Evaluates the given Flashing Cell Definition and flashes the correspondent cells/rows

```ts title="TypeScript"
showFlashingCell(flashingCellToShow: AdaptableFlashingCell): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellToShow | [`AdaptableFlashingCell`](https://www.adaptabletools.com/docs/reference/adaptableflashingcell.md) | Flashing Cell Definition to show |

###### Returns

`void`

### suspendAllFlashingCellDefinition

Suspends all FlashingCell Definitions

```ts title="TypeScript"
suspendAllFlashingCellDefinition(): void;
```

###### Returns

`void`

### suspendFlashingCellDefinition

Suspends a Flashing Cell Definition

```ts title="TypeScript"
suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Flashing Cell Definition to Suspend |

###### Returns

 Flashing Cell Definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)

### unSuspendAllFlashingCellDefinition

Activates all suspended Flashing Cell Definition

```ts title="TypeScript"
unSuspendAllFlashingCellDefinition(): void;
```

###### Returns

`void`

### unSuspendFlashingCellDefinition

Activates a suspended Flashing Cell Definition

```ts title="TypeScript"
unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| flashingCellDefinition | [`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md) | Flashing Cell Definition to Un-Suspend (activate) |

###### Returns

 Flashing Cell Definition

[`FlashingCellDefinition`](https://www.adaptabletools.com/docs/reference/flashingcelldefinition.md)
