# ColumnSelectionDialogResult Type documentation

## TypeScript declaration

### [ColumnSelectionDialogResult](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L54-L59>)

**Kind:** interface

```
import type { ColumnSelectionDialogResult } from '@siemens/element-ng/column-selection-dialog';
```

```
interface ColumnSelectionDialogResult
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [columns](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L56-L56>) | `Column[]` |  |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L55-L55>) | `ColumnSelectionDialogResultType` |  |
| [updateColumns](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L58-L58>) (optional) | `((columns: Column[]) => void)` | when `type === 'restoreDefault'`, this function is set and allows to provide the columns |

### Types Documentation

### [Column](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L7-L34>)

**Kind:** interface

```
import type { Column } from '@siemens/element-ng/column-selection-dialog';
```

```
interface Column
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L29-L29>) | `boolean` | If true, the column is disabled and cannot be interacted with. This means, the user cannot change any of the column options like the visibility etc. |
| [draggable](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L23-L23>) | `boolean` | If true, the order of the column can be changed by dragging it to another position. |
| [editable](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L33-L33>) (optional) | `boolean` | If true, the [title](<index.html#t:Column.title>) can be renamed. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L11-L11>) | `string` | Unique id |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L15-L15>) | `string` | Title of the column. |
| [visible](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L19-L19>) | `boolean` | Decides if the column is visible to the user. |

### [ColumnSelectionDialogResultType](<https://github.com/siemens/element/blob/main/projects/element-ng/column-selection-dialog/si-column-selection-dialog.types.ts#L70-L70>)

**Kind:** type alias

```
import type { ColumnSelectionDialogResultType } from '@siemens/element-ng/column-selection-dialog';
```

Emit type of dialog actions.

`ok` : Emitted when user submits. `cancel` : Emitted when user clicks cancel. `instant` : Emitted when visibility or place of a row changes.

`instant` type is used to reflect the ui changes real time even before closing the dialog.

```
type ColumnSelectionDialogResultType = 'ok' | 'cancel' | 'instant' | 'restoreDefault'
```
