# SmartEditApi

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

Smart Edit: one change applied to every selected cell.

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [getSmartEditCustomOperations()](https://www.adaptabletools.com/docs/reference/smarteditapi.md#getsmarteditcustomoperations) | [`SmartEditCustomOperation`](https://www.adaptabletools.com/docs/reference/smarteditcustomoperation.md)`[]` | Retrieves an Smart Edit Custom Operations (provided in Edit Options) |
| [getSmartEditOperation()](https://www.adaptabletools.com/docs/reference/smarteditapi.md#getsmarteditoperation) | [`SmartEditOperation`](https://www.adaptabletools.com/docs/reference/smarteditoperation.md) | Gets current Smart Edit Operation |
| [getSmartEditValue()](https://www.adaptabletools.com/docs/reference/smarteditapi.md#getsmarteditvalue) | `number` | Returns current Smart Edit Value |
| [openSmartEditSettingsPanel()](https://www.adaptabletools.com/docs/reference/smarteditapi.md#opensmarteditsettingspanel) | `void` | Opens Settings Panel with Smart Edit section selected and visible |
| [setCustomSmartEditOperation(customOperationName)](https://www.adaptabletools.com/docs/reference/smarteditapi.md#setcustomsmarteditoperation) | `void` | Sets current Smart Edit Operation to a Custom Operation |
| [setSmartEditOperation(operation)](https://www.adaptabletools.com/docs/reference/smarteditapi.md#setsmarteditoperation) | `void` | Sets (shipped) Smart Edit Operation: &#39;Add&#39;,&#39;Subtract&#39;,&#39;Multiply&#39;,&#39;Divide&#39; |
| [setSmartEditValue(smartEditValue)](https://www.adaptabletools.com/docs/reference/smarteditapi.md#setsmarteditvalue) | `void` | Sets Smart Edit Value |

## Method Details

### getSmartEditCustomOperations

Retrieves an Smart Edit Custom Operations (provided in Edit Options)

```ts title="TypeScript"
getSmartEditCustomOperations(): SmartEditCustomOperation[];
```

###### Returns

 An Smart Edit Custom Operations (provided in Edit Options)

[`SmartEditCustomOperation`](https://www.adaptabletools.com/docs/reference/smarteditcustomoperation.md)`[]`

### getSmartEditOperation

Gets current Smart Edit Operation

```ts title="TypeScript"
getSmartEditOperation(): SmartEditOperation;
```

###### Returns

 Current Smart Edit Operation

[`SmartEditOperation`](https://www.adaptabletools.com/docs/reference/smarteditoperation.md)

### getSmartEditValue

Returns current Smart Edit Value

```ts title="TypeScript"
getSmartEditValue(): number;
```

###### Returns

 Current Smart Edit Value

`number`

### openSmartEditSettingsPanel

Opens Settings Panel with Smart Edit section selected and visible

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

###### Returns

`void`

### setCustomSmartEditOperation

Sets current Smart Edit Operation to a Custom Operation

```ts title="TypeScript"
setCustomSmartEditOperation(customOperationName: string): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| customOperationName | `string` | name of Custom Smart Edit Operation |

###### Returns

`void`

### setSmartEditOperation

Sets (shipped) Smart Edit Operation: &#39;Add&#39;,&#39;Subtract&#39;,&#39;Multiply&#39;,&#39;Divide&#39;

```ts title="TypeScript"
setSmartEditOperation(operation: MathOperation): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| operation | `MathOperation` | operation to run |

###### Returns

`void`

### setSmartEditValue

Sets Smart Edit Value

```ts title="TypeScript"
setSmartEditValue(smartEditValue: number): void;
```

###### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| smartEditValue | `number` | the value to use in Smart Edit Operation |

###### Returns

`void`
