---
title: "Dialog"
---
# Dialog

Defined in: [src/modules/dialog/dialog.ts:85](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L85)

Module to generate dialog windows

## Extends

- [`ViewWithToolbar`](./view.ViewWithToolbar.html)

## Implements

- [`IDialog`](../interfaces/types.IDialog.html)

### Constructor

**new Dialog**(`options?`): `Dialog`

Defined in: [src/modules/dialog/dialog.ts:762](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L762)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)\<[`IDialogOptions`](../interfaces/types.IDialogOptions.html)\> |

#### Returns

`Dialog`

#### Overrides

`ViewWithToolbar.constructor`

### STATUSES

`static` **STATUSES**: `object`

Defined in: [src/core/component/component.ts:40](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L40)

#### beforeInit

`readonly` **beforeInit**: `"beforeInit"` = `'beforeInit'`

#### ready

`readonly` **ready**: `"ready"` = `'ready'`

#### beforeDestruct

`readonly` **beforeDestruct**: `"beforeDestruct"` = `'beforeDestruct'`

#### destructed

`readonly` **destructed**: `"destructed"` = `'destructed'`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`STATUSES`](./view.ViewWithToolbar.html#statuses)

***

### async

**async**: [`IAsync`](../interfaces/types.IAsync.html)

Defined in: [src/core/component/component.ts:44](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L44)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`async`](../interfaces/types.IDialog.html#async)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`async`](./view.ViewWithToolbar.html#async)

***

### uid

`readonly` **uid**: `string`

Defined in: [src/core/component/component.ts:59](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L59)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`uid`](../interfaces/types.IDialog.html#uid)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`uid`](./view.ViewWithToolbar.html#uid)

***

### ownerWindow

**ownerWindow**: [`Window`](https://developer.mozilla.org/docs/Web/API/Window) = `window`

Defined in: [src/core/component/component.ts:109](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L109)

The window in which jodit was created

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`ownerWindow`](../interfaces/types.IDialog.html#ownerwindow)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`ownerWindow`](./view.ViewWithToolbar.html#ownerwindow)

***

### TOOLBAR

**TOOLBAR**: [`IToolbarCollection`](../interfaces/types.IToolbarCollection.html)

Defined in: [src/core/view/view-with-toolbar.ts:35](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L35)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`TOOLBAR`](./view.ViewWithToolbar.html#toolbar)

***

### registeredButtons

**registeredButtons**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`IPluginButton`](../interfaces/types.IPluginButton.html)\>

Defined in: [src/core/view/view-with-toolbar.ts:106](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L106)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`registeredButtons`](./view.ViewWithToolbar.html#registeredbuttons)

***

### isJodit

`readonly` **isJodit**: `boolean` = `false`

Defined in: [src/core/view/view-with-toolbar.ts:183](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L183)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isJodit`](./view.ViewWithToolbar.html#isjodit)

***

### isView

`readonly` **isView**: `true`

Defined in: [src/core/view/view.ts:65](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L65)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isView`](../interfaces/types.IDialog.html#isview)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isView`](./view.ViewWithToolbar.html#isview)

***

### parent

**parent**: [`Nullable`](../modules/types.html#nullable)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> = `null`

Defined in: [src/core/view/view.ts:66](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L66)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`parent`](../interfaces/types.IDialog.html#parent)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`parent`](./view.ViewWithToolbar.html#parent)

***

### mods

`readonly` **mods**: [`IDictionary`](../modules/types.html#idictionary)\<`string` \| `boolean` \| `null`\> = `{}`

Defined in: [src/core/view/view.ts:68](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L68)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`mods`](../interfaces/types.IDialog.html#mods)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`mods`](./view.ViewWithToolbar.html#mods)

***

### id

**id**: `string`

Defined in: [src/core/view/view.ts:73](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L73)

ID attribute for a source element, id add `{id}_editor` it's editor's id

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`id`](../interfaces/types.IDialog.html#id)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`id`](./view.ViewWithToolbar.html#id)

***

### components

`readonly` **components**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\>\>

Defined in: [src/core/view/view.ts:78](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L78)

All created ViewComponent inside this view

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`components`](../interfaces/types.IDialog.html#components)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`components`](./view.ViewWithToolbar.html#components)

***

### events

`readonly` **events**: [`IEventEmitter`](../interfaces/types.IEventEmitter.html)

Defined in: [src/core/view/view.ts:80](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L80)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`events`](../interfaces/types.IDialog.html#events)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`events`](./view.ViewWithToolbar.html#events)

***

### create

`readonly` **create**: [`ICreate`](../interfaces/types.ICreate.html)

Defined in: [src/core/view/view.ts:82](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L82)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`create`](../interfaces/types.IDialog.html#create)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`create`](./view.ViewWithToolbar.html#create)

***

### ES

`readonly` `static` **ES**: `"es5"` \| `"es2015"` \| `"es2018"` \| `"es2021"`

Defined in: [src/core/view/view.ts:123](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L123)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`ES`](./view.ViewWithToolbar.html#es)

***

### version

`readonly` `static` **version**: `string` = `APP_VERSION`

Defined in: [src/core/view/view.ts:124](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L124)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`version`](./view.ViewWithToolbar.html#version)

***

### esNext

`readonly` `static` **esNext**: `boolean` = `IS_ES_NEXT`

Defined in: [src/core/view/view.ts:125](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L125)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`esNext`](./view.ViewWithToolbar.html#esnext)

***

### esModern

`readonly` `static` **esModern**: `boolean` = `IS_ES_MODERN`

Defined in: [src/core/view/view.ts:126](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L126)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`esModern`](./view.ViewWithToolbar.html#esmodern)

***

### toolbar

**toolbar**: [`IToolbarCollection`](../interfaces/types.IToolbarCollection.html)

Defined in: [src/modules/dialog/dialog.ts:92](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L92)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`toolbar`](./view.ViewWithToolbar.html#toolbar-1)

***

### OPTIONS

**OPTIONS**: [`IDialogOptions`](../interfaces/types.IDialogOptions.html)

Defined in: [src/modules/dialog/dialog.ts:374](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L374)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`OPTIONS`](../interfaces/types.IDialog.html#options)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`OPTIONS`](./view.ViewWithToolbar.html#options)

***

### dialog

`readonly` **dialog**: [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

Defined in: [src/modules/dialog/dialog.ts:376](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L376)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`dialog`](../interfaces/types.IDialog.html#dialog)

***

### workplace

**workplace**: [`HTMLDivElement`](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)

Defined in: [src/modules/dialog/dialog.ts:378](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L378)

***

### isOpened

**isOpened**: `boolean` = `false`

Defined in: [src/modules/dialog/dialog.ts:686](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L686)

True, if dialog was opened

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isOpened`](../interfaces/types.IDialog.html#isopened)

***

### defaultOptions

`static` **defaultOptions**: [`IDialogOptions`](../interfaces/types.IDialogOptions.html)

Defined in: [src/modules/dialog/dialog.ts:922](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L922)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`defaultOptions`](./view.ViewWithToolbar.html#defaultoptions)

#### Get Signature

**get** **componentName**(): `string`

Defined in: [src/core/component/component.ts:46](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L46)

##### Returns

`string`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`componentName`](../interfaces/types.IDialog.html#componentname)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`componentName`](./view.ViewWithToolbar.html#componentname)

***

#### Get Signature

**get** **ownerDocument**(): [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/core/component/component.ts:95](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L95)

The document in which jodit was created

##### Returns

[`Document`](https://developer.mozilla.org/docs/Web/API/Document)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`ownerDocument`](../interfaces/types.IDialog.html#ownerdocument)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`ownerDocument`](./view.ViewWithToolbar.html#ownerdocument)

***

#### Get Signature

**get** **od**(): [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/core/component/component.ts:102](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L102)

Shortcut for `this.ownerDocument`

##### Returns

[`Document`](https://developer.mozilla.org/docs/Web/API/Document)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`od`](../interfaces/types.IDialog.html#od)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`od`](./view.ViewWithToolbar.html#od)

***

#### Get Signature

**get** **ow**(): [`Window`](https://developer.mozilla.org/docs/Web/API/Window)

Defined in: [src/core/component/component.ts:110](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L110)

##### Returns

[`Window`](https://developer.mozilla.org/docs/Web/API/Window)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`ow`](../interfaces/types.IDialog.html#ow)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`ow`](./view.ViewWithToolbar.html#ow)

***

#### Get Signature

**get** **isReady**(): `boolean`

Defined in: [src/core/component/component.ts:145](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L145)

Component is ready for work

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isReady`](../interfaces/types.IDialog.html#isready)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isReady`](./view.ViewWithToolbar.html#isready)

***

#### Get Signature

**get** **isDestructed**(): `boolean`

Defined in: [src/core/component/component.ts:152](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L152)

Component was destructed

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isDestructed`](../interfaces/types.IDialog.html#isdestructed)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isDestructed`](./view.ViewWithToolbar.html#isdestructed)

***

#### Get Signature

**get** **isInDestruct**(): `boolean`

Defined in: [src/core/component/component.ts:160](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L160)

The component is currently undergoing destructuring or has already been destroyed.
Those. you should not the app froze new events on him now or do anything else with him.

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isInDestruct`](../interfaces/types.IDialog.html#isindestruct)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isInDestruct`](./view.ViewWithToolbar.html#isindestruct)

***

#### Get Signature

**get** **componentStatus**(): [`ComponentStatus`](../modules/types.html#componentstatus)

Defined in: [src/core/component/component.ts:210](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L210)

Current component status

##### Returns

[`ComponentStatus`](../modules/types.html#componentstatus)

#### Set Signature

**set** **componentStatus**(`componentStatus`): `void`

Defined in: [src/core/component/component.ts:217](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L217)

Setter for current component status

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `componentStatus` | [`ComponentStatus`](../modules/types.html#componentstatus) |

##### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`componentStatus`](../interfaces/types.IDialog.html#componentstatus)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`componentStatus`](./view.ViewWithToolbar.html#componentstatus)

***

#### Get Signature

**get** **toolbarContainer**(): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

Defined in: [src/core/view/view-with-toolbar.ts:44](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L44)

Container for toolbar

##### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`toolbarContainer`](./view.ViewWithToolbar.html#toolbarcontainer)

***

#### Get Signature

**get** **basePath**(): `string`

Defined in: [src/core/view/view.ts:103](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L103)

Get a path for loading extra staff

##### Returns

`string`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`basePath`](../interfaces/types.IDialog.html#basepath)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`basePath`](./view.ViewWithToolbar.html#basepath)

***

#### Get Signature

**get** **minified**(): `boolean`

Defined in: [src/core/view/view.ts:114](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L114)

Plugin autoloader should load minified version of the file

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`minified`](../interfaces/types.IDialog.html#minified)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`minified`](./view.ViewWithToolbar.html#minified)

***

#### Get Signature

**get** **defaultTimeout**(): `number`

Defined in: [src/core/view/view.ts:132](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L132)

Return a default timeout period in milliseconds for some debounce or throttle functions.
By default, `{history.timeout}` options

##### Returns

`number`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`defaultTimeout`](../interfaces/types.IDialog.html#defaulttimeout)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`defaultTimeout`](./view.ViewWithToolbar.html#defaulttimeout)

***

#### Get Signature

**get** **buffer**(): [`IStorage`](../interfaces/types.IStorage.html)

Defined in: [src/core/view/view.ts:141](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L141)

Some extra data inside editor

##### See

copyformat plugin

##### Returns

[`IStorage`](../interfaces/types.IStorage.html)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`buffer`](../interfaces/types.IDialog.html#buffer)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`buffer`](./view.ViewWithToolbar.html#buffer)

***

#### Get Signature

**get** **message**(): [`IMessages`](../interfaces/types.IMessages.html)

Defined in: [src/core/view/view.ts:146](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L146)

##### Returns

[`IMessages`](../interfaces/types.IMessages.html)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`message`](../interfaces/types.IDialog.html#message)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`message`](./view.ViewWithToolbar.html#message)

***

#### Get Signature

**get** **storage**(): [`IStorage`](../interfaces/types.IStorage.html)

Defined in: [src/core/view/view.ts:159](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L159)

Container for persistent set/get value

##### Deprecated

Use asyncStorage instead

##### Returns

[`IStorage`](../interfaces/types.IStorage.html)

#### Deprecated

Use asyncStorage instead

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`storage`](../interfaces/types.IDialog.html#storage)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`storage`](./view.ViewWithToolbar.html#storage)

***

#### Get Signature

**get** **asyncStorage**(): [`IAsyncStorage`](../interfaces/types.IAsyncStorage.html)

Defined in: [src/core/view/view.ts:167](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L167)

Container for persistent set/get value

##### Returns

[`IAsyncStorage`](../interfaces/types.IAsyncStorage.html)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`asyncStorage`](../interfaces/types.IDialog.html#asyncstorage)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`asyncStorage`](./view.ViewWithToolbar.html#asyncstorage)

***

#### Get Signature

**get** **c**(): `this`\[`"create"`\]

Defined in: [src/core/view/view.ts:175](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L175)

Short alias for `create`

##### Returns

`this`\[`"create"`\]

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`c`](../interfaces/types.IDialog.html#c)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`c`](./view.ViewWithToolbar.html#c)

***

#### Get Signature

**get** **container**(): [`HTMLDivElement`](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)

Defined in: [src/core/view/view.ts:180](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L180)

##### Returns

[`HTMLDivElement`](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)

#### Set Signature

**set** **container**(`container`): `void`

Defined in: [src/core/view/view.ts:184](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L184)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `container` | [`HTMLDivElement`](https://developer.mozilla.org/docs/Web/API/HTMLDivElement) |

##### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`container`](../interfaces/types.IDialog.html#container)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`container`](./view.ViewWithToolbar.html#container)

***

#### Get Signature

**get** **e**(): `this`\[`"events"`\]

Defined in: [src/core/view/view.ts:192](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L192)

Short alias for `events`

##### Returns

`this`\[`"events"`\]

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`e`](../interfaces/types.IDialog.html#e)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`e`](./view.ViewWithToolbar.html#e)

***

#### Get Signature

**get** **progressbar**(): [`IProgressBar`](../interfaces/types.IProgressBar.html)

Defined in: [src/core/view/view.ts:200](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L200)

progress_bar Progress bar

##### Returns

[`IProgressBar`](../interfaces/types.IProgressBar.html)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`progressbar`](../interfaces/types.IDialog.html#progressbar)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`progressbar`](./view.ViewWithToolbar.html#progressbar)

***

#### Get Signature

**get** **options**(): `this`\[`"OPTIONS"`\]

Defined in: [src/core/view/view.ts:206](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L206)

##### Returns

`this`\[`"OPTIONS"`\]

#### Set Signature

**set** **options**(`options`): `void`

Defined in: [src/core/view/view.ts:210](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L210)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | `this`\[`"OPTIONS"`\] |

##### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`options`](../interfaces/types.IDialog.html#options-1)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`options`](./view.ViewWithToolbar.html#options-1)

***

#### Get Signature

**get** **o**(): `this`\[`"options"`\]

Defined in: [src/core/view/view.ts:217](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L217)

Short alias for options

##### Returns

`this`\[`"options"`\]

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`o`](../interfaces/types.IDialog.html#o)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`o`](./view.ViewWithToolbar.html#o)

***

#### Get Signature

**get** **isLocked**(): `boolean`

Defined in: [src/core/view/view.ts:248](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L248)

View is locked

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isLocked`](../interfaces/types.IDialog.html#islocked)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isLocked`](./view.ViewWithToolbar.html#islocked)

***

#### Get Signature

**get** **isFullSize**(): `boolean`

Defined in: [src/core/view/view.ts:282](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L282)

View is in fullSize

##### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isFullSize`](../interfaces/types.IDialog.html#isfullsize)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isFullSize`](./view.ViewWithToolbar.html#isfullsize)

#### Call Signature

**getFullElName**(`elementName`): `string`

Defined in: [src/core/component/component.ts:65](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L65)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |

##### Returns

`string`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getFullElName`](../interfaces/types.IDialog.html#getfullelname)

##### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getFullElName`](./view.ViewWithToolbar.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod`): `string`

Defined in: [src/core/component/component.ts:66](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L66)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |
| `mod` | `string` | - |

##### Returns

`string`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getFullElName`](../interfaces/types.IDialog.html#getfullelname)

##### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getFullElName`](./view.ViewWithToolbar.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod`, `modValue`): `string`

Defined in: [src/core/component/component.ts:67](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L67)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |
| `mod` | `string` | - |
| `modValue` | `string` \| `boolean` | - |

##### Returns

`string`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getFullElName`](../interfaces/types.IDialog.html#getfullelname)

##### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getFullElName`](./view.ViewWithToolbar.html#getfullelname)

***

### get()

**get**\<`T`\>(`chain`, `obj?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/component/component.ts:138](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L138)

Safe get any field

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `chain` | `string` | the path to be traversed in the obj object |
| `obj?` | [`IDictionary`](../modules/types.html#idictionary) | the object in which the value is searched |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

#### Example

```js
private a = {
  b: {
    c: {
      e: {
        g: {
          color: 'red'
        }
      }
    }
  }
}

this.get('a.b.c.e.g.color'); // Safe access to color
// instead using optionsl chaining
this?.a?.b?.c?.e?.g?.color
```

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`get`](../interfaces/types.IDialog.html#get)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`get`](./view.ViewWithToolbar.html#get)

***

### bindDestruct()

**bindDestruct**(`component`): `this`

Defined in: [src/core/component/component.ts:170](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L170)

Bind destructor to some View

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `component` | [`IComponent`](../interfaces/types.IComponent.html) |

#### Returns

`this`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`bindDestruct`](../interfaces/types.IDialog.html#binddestruct)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`bindDestruct`](./view.ViewWithToolbar.html#binddestruct)

***

### setStatus()

**setStatus**(`componentStatus`): `void`

Defined in: [src/core/component/component.ts:226](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L226)

Set component status

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `componentStatus` | [`ComponentStatus`](../modules/types.html#componentstatus) | component status |

#### Returns

`void`

#### See

ComponentStatus

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setStatus`](../interfaces/types.IDialog.html#setstatus)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`setStatus`](./view.ViewWithToolbar.html#setstatus)

***

### hookStatus()

**hookStatus**(`status`, `callback`): `void`

Defined in: [src/core/component/component.ts:265](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L265)

Adds a handler for changing the component's status

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `status` | [`ComponentStatus`](../modules/types.html#componentstatus) | the status at which the callback is triggered |
| `callback` | (`component`) => `void` | a function that will be called when the status is `status` |

#### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`hookStatus`](../interfaces/types.IDialog.html#hookstatus)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`hookStatus`](./view.ViewWithToolbar.html#hookstatus)

***

### isInstanceOf()

`static` **isInstanceOf**\<`T`\>(`c`, `constructorFunc`): `c is T`

Defined in: [src/core/component/component.ts:283](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L283)

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`Component`](./component.Component.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `c` | `unknown` |
| `constructorFunc` | [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) |

#### Returns

`c is T`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isInstanceOf`](./view.ViewWithToolbar.html#isinstanceof)

***

### getElm()

**getElm**\<`T`\>(`this`, `elementName`): [`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

Defined in: [src/core/traits/elms.ts:18](https://github.com/xdan/jodit/blob/main/src/core/traits/elms.ts#L18)

Return element with BEM class name

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IElms`](../interfaces/types.IElms.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `T` |
| `elementName` | `string` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getElm`](../interfaces/types.IDialog.html#getelm)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getElm`](./view.ViewWithToolbar.html#getelm)

***

### getElms()

**getElms**\<`T`\>(`this`, `elementName`): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]

Defined in: [src/core/traits/elms.ts:34](https://github.com/xdan/jodit/blob/main/src/core/traits/elms.ts#L34)

Return elements with BEM class name

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IElms`](../interfaces/types.IElms.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `T` |
| `elementName` | `string` |

#### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getElms`](../interfaces/types.IDialog.html#getelms)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getElms`](./view.ViewWithToolbar.html#getelms)

***

### afterSetMod()

**afterSetMod**(`name`, `value`): `void`

Defined in: [src/core/traits/mods.ts:23](https://github.com/xdan/jodit/blob/main/src/core/traits/mods.ts#L23)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `value` | [`ModType`](../modules/types.html#modtype) |

#### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`afterSetMod`](../interfaces/types.IDialog.html#aftersetmod)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`afterSetMod`](./view.ViewWithToolbar.html#aftersetmod)

***

### setMod()

**setMod**\<`T`\>(`this`, `name`, `value`, `container?`): `T`

Defined in: [src/core/traits/mods.ts:30](https://github.com/xdan/jodit/blob/main/src/core/traits/mods.ts#L30)

Set/remove BEM class modification

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IMods`](../interfaces/types.IMods.html) |

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `this` | `T` | - |
| `name` | `string` | - |
| `value` | [`ModType`](../modules/types.html#modtype) | if null, mod will be removed |
| `container?` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | - |

#### Returns

`T`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setMod`](../interfaces/types.IDialog.html#setmod)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`setMod`](./view.ViewWithToolbar.html#setmod)

***

### getMod()

**getMod**(`this`, `name`): [`ModType`](../modules/types.html#modtype)

Defined in: [src/core/traits/mods.ts:64](https://github.com/xdan/jodit/blob/main/src/core/traits/mods.ts#L64)

Get BEM class modification value

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IMods`](../interfaces/types.IMods.html) |
| `name` | `string` |

#### Returns

[`ModType`](../modules/types.html#modtype)

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getMod`](../interfaces/types.IDialog.html#getmod)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getMod`](./view.ViewWithToolbar.html#getmod)

***

### setPanel()

**setPanel**(`element`): `void`

Defined in: [src/core/view/view-with-toolbar.ts:82](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L82)

Change panel container

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `element` | `string` \| [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

`void`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`setPanel`](./view.ViewWithToolbar.html#setpanel)

***

### getRegisteredButtonGroups()

**getRegisteredButtonGroups**(): [`IDictionary`](../modules/types.html#idictionary)\<`string`[]\>

Defined in: [src/core/view/view-with-toolbar.ts:109](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L109)

#### Returns

[`IDictionary`](../modules/types.html#idictionary)\<`string`[]\>

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getRegisteredButtonGroups`](./view.ViewWithToolbar.html#getregisteredbuttongroups)

***

### registerButton()

**registerButton**(`btn`): `this`

Defined in: [src/core/view/view-with-toolbar.ts:116](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L116)

Register button for a group

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `btn` | [`IPluginButton`](../interfaces/types.IPluginButton.html) |

#### Returns

`this`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`registerButton`](./view.ViewWithToolbar.html#registerbutton)

***

### unregisterButton()

**unregisterButton**(`btn`): `this`

Defined in: [src/core/view/view-with-toolbar.ts:136](https://github.com/xdan/jodit/blob/main/src/core/view/view-with-toolbar.ts#L136)

Remove button from a group

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `btn` | [`IPluginButton`](../interfaces/types.IPluginButton.html) |

#### Returns

`this`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`unregisterButton`](./view.ViewWithToolbar.html#unregisterbutton)

***

### i18n()

**i18n**(`text`, ...`params`): `string`

Defined in: [src/core/view/view.ts:224](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L224)

Internationalization method. Uses Jodit.lang object

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |
| ...`params` | (`string` \| `number`)[] |

#### Returns

`string`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`i18n`](../interfaces/types.IDialog.html#i18n)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`i18n`](./view.ViewWithToolbar.html#i18n)

***

### isLockedNotBy()

**isLockedNotBy**(`name`): `boolean`

Defined in: [src/core/view/view.ts:252](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L252)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |

#### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`isLockedNotBy`](../interfaces/types.IDialog.html#islockednotby)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`isLockedNotBy`](./view.ViewWithToolbar.html#islockednotby)

***

### lock()

**lock**(`name?`): `boolean`

Defined in: [src/core/view/view.ts:258](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L258)

Disable selecting

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `name` | `string` | `'any'` |

#### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`lock`](../interfaces/types.IDialog.html#lock)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`lock`](./view.ViewWithToolbar.html#lock)

***

### unlock()

**unlock**(): `boolean`

Defined in: [src/core/view/view.ts:270](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L270)

Enable selecting

#### Returns

`boolean`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`unlock`](../interfaces/types.IDialog.html#unlock)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`unlock`](./view.ViewWithToolbar.html#unlock)

***

### getVersion()

**getVersion**(): `string`

Defined in: [src/core/view/view.ts:289](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L289)

Return current version

#### Returns

`string`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getVersion`](../interfaces/types.IDialog.html#getversion)

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getVersion`](./view.ViewWithToolbar.html#getversion)

***

### getVersion()

`static` **getVersion**(): `string`

Defined in: [src/core/view/view.ts:293](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L293)

#### Returns

`string`

#### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getVersion`](./view.ViewWithToolbar.html#getversion-1)

***

#### Call Signature

**getInstance**\<`T`\>(`module`, `options?`): `T`

Defined in: [src/core/view/view.ts:329](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L329)

Make one instance of one module

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `module` | [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) |
| `options?` | `object` |

##### Returns

`T`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getInstance`](../interfaces/types.IDialog.html#getinstance)

##### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getInstance`](./view.ViewWithToolbar.html#getinstance)

#### Call Signature

**getInstance**\<`T`\>(`moduleName`, `options?`): `T`

Defined in: [src/core/view/view.ts:330](https://github.com/xdan/jodit/blob/main/src/core/view/view.ts#L330)

Make one instance of one module

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `moduleName` | `string` |
| `options?` | `object` |

##### Returns

`T`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getInstance`](../interfaces/types.IDialog.html#getinstance)

##### Inherited from

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`getInstance`](./view.ViewWithToolbar.html#getinstance)

***

### className()

**className**(): `string`

Defined in: [src/modules/dialog/dialog.ts:87](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L87)

#### Returns

`string`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`className`](../interfaces/types.IDialog.html#classname)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`className`](./view.ViewWithToolbar.html#classname)

***

### setSize()

**setSize**(`w?`, `h?`): `this`

Defined in: [src/modules/dialog/dialog.ts:391](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L391)

Specifies the size of the window

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `w?` | `string` \| `number` | The width of the window |
| `h?` | `string` \| `number` | The height of the window |

#### Returns

`this`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setSize`](../interfaces/types.IDialog.html#setsize)

***

### calcAutoSize()

**calcAutoSize**(): `this`

Defined in: [src/modules/dialog/dialog.ts:411](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L411)

Recalculate auto sizes

#### Returns

`this`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`calcAutoSize`](../interfaces/types.IDialog.html#calcautosize)

***

### setPosition()

**setPosition**(`x?`, `y?`): `this`

Defined in: [src/modules/dialog/dialog.ts:425](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L425)

Specifies the position of the upper left corner of the window . If x and y are specified,
the window is centered on the center of the screen

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `x?` | `number` | Position px Horizontal |
| `y?` | `number` | Position px Vertical |

#### Returns

`this`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setPosition`](../interfaces/types.IDialog.html#setposition)

***

### setHeader()

**setHeader**(`content`): `this`

Defined in: [src/modules/dialog/dialog.ts:468](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L468)

Specifies the dialog box title . It can take a string and an array of objects

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `content` | [`Content`](../modules/types.html#content) | A string or an HTML element , or an array of strings and elements |

#### Returns

`this`

#### Example

```javascript
var dialog = new Jodi.modules.Dialog(parent);
dialog.setHeader('Hello world');
dialog.setHeader(['Hello world', '<button>OK</button>', $('<div>some</div>')]);
dialog.open();
```

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setHeader`](../interfaces/types.IDialog.html#setheader)

***

### setContent()

**setContent**(`content`): `this`

Defined in: [src/modules/dialog/dialog.ts:486](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L486)

It specifies the contents of the dialog box. It can take a string and an array of objects

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `content` | [`Content`](../modules/types.html#content) | A string or an HTML element , or an array of strings and elements |

#### Returns

`this`

#### Example

```javascript
var dialog = new Jodi.modules.Dialog(parent);
dialog.setHeader('Hello world');
dialog.setContent('<form onsubmit="alert(1);"><input type="text" /></form>');
dialog.open();
```

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setContent`](../interfaces/types.IDialog.html#setcontent)

***

### setFooter()

**setFooter**(`content`): `this`

Defined in: [src/modules/dialog/dialog.ts:510](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L510)

Sets the bottom of the dialog. It can take a string and an array of objects

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `content` | [`Content`](../modules/types.html#content) | A string or an HTML element , or an array of strings and elements |

#### Returns

`this`

#### Example

```javascript
var dialog = new Jodi.modules.Dialog(parent);
dialog.setHeader('Hello world');
dialog.setContent('<form><input id="someText" type="text" /></form>');
dialog.setFooter([
 $('<a class="jodit-button">OK</a>').click(function () {
     alert($('someText').val())
     dialog.close();
 })
]);
dialog.open();
```

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setFooter`](../interfaces/types.IDialog.html#setfooter)

***

### getZIndex()

**getZIndex**(): `number`

Defined in: [src/modules/dialog/dialog.ts:537](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L537)

Get zIndex from dialog

#### Returns

`number`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`getZIndex`](../interfaces/types.IDialog.html#getzindex)

***

### getMaxZIndexDialog()

**getMaxZIndexDialog**(): [`IDialog`](../interfaces/types.IDialog.html)

Defined in: [src/modules/dialog/dialog.ts:544](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L544)

Get dialog instance with maximum z-index displaying it on top of all the dialog boxes

#### Returns

[`IDialog`](../interfaces/types.IDialog.html)

***

### setMaxZIndex()

**setMaxZIndex**(): `void`

Defined in: [src/modules/dialog/dialog.ts:563](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L563)

Sets the maximum z-index dialog box, displaying it on top of all the dialog boxes

#### Returns

`void`

***

### toggleFullSize()

**toggleFullSize**(`isFullSize?`): `void`

Defined in: [src/modules/dialog/dialog.ts:578](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L578)

Expands the dialog on full browser window

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `isFullSize?` | `boolean` |

#### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`toggleFullSize`](../interfaces/types.IDialog.html#togglefullsize)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`toggleFullSize`](./view.ViewWithToolbar.html#togglefullsize)

***

### open()

It opens a dialog box to center it, and causes the two event.

#### Param

**contentOrClose**

specifies the contents of the dialog box.
Can be false or undefined. see [Dialog.setContent](./dialog.Dialog.html#setcontent)

#### Param

**title**

specifies the title of the dialog box,

#### See

setHeader

#### Param

**destroyAfterClose**

true - After closing the window , the destructor will be called.

#### Param

**modal**

true window will be opened in modal mode

#### Call Signature

**open**(`destroyAfterClose`): `this`

Defined in: [src/modules/dialog/dialog.ts:588](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L588)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `destroyAfterClose` | `boolean` |

##### Returns

`this`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`open`](../interfaces/types.IDialog.html#open)

#### Call Signature

**open**(`destroyAfterClose`, `modal`): `this`

Defined in: [src/modules/dialog/dialog.ts:590](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L590)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `destroyAfterClose` | `boolean` |
| `modal` | `boolean` |

##### Returns

`this`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`open`](../interfaces/types.IDialog.html#open)

#### Call Signature

**open**(`content?`, `title?`, `destroyAfterClose?`, `modal?`): `this`

Defined in: [src/modules/dialog/dialog.ts:592](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L592)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `content?` | [`Content`](../modules/types.html#content) |
| `title?` | [`Content`](../modules/types.html#content) |
| `destroyAfterClose?` | `boolean` |
| `modal?` | `boolean` |

##### Returns

`this`

##### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`open`](../interfaces/types.IDialog.html#open)

***

### setModal()

**setModal**(`modal`): `this`

Defined in: [src/modules/dialog/dialog.ts:676](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L676)

Set modal mode

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `modal` | `boolean` \| `undefined` |

#### Returns

`this`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`setModal`](../interfaces/types.IDialog.html#setmodal)

***

### close()

**close**(): `this`

Defined in: [src/modules/dialog/dialog.ts:709](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L709)

*
Closes the dialog box , if you want to call the method `destruct`

#### Returns

`this`

#### See

destroy

#### Example

```javascript
//You can close dialog two ways
var dialog = new Jodit.modules.Dialog();
dialog.open('Hello world!', 'Title');
var $close = dialog.create.fromHTML('<a href="#" style="float:left;" class="jodit-button">
    <i class="icon icon-check"></i>&nbsp;' + Jodit.prototype.i18n('Ok') + '</a>');
$close.addEventListener('click', function () {
    dialog.close();
});
dialog.setFooter($close);
// and second way, you can close dialog from content
dialog.open('<a onclick="var event = doc.createEvent('HTMLEvents'); event.initEvent('close_dialog', true, true);
this.dispatchEvent(event)">Close</a>', 'Title');
```

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`close`](../interfaces/types.IDialog.html#close)

***

### destruct()

**destruct**(): `void`

Defined in: [src/modules/dialog/dialog.ts:897](https://github.com/xdan/jodit/blob/main/src/modules/dialog/dialog.ts#L897)

It destroys all objects created for the windows and also includes all the handlers for the window object

#### Returns

`void`

#### Implementation of

[`IDialog`](../interfaces/types.IDialog.html).[`destruct`](../interfaces/types.IDialog.html#destruct)

#### Overrides

[`ViewWithToolbar`](./view.ViewWithToolbar.html).[`destruct`](./view.ViewWithToolbar.html#destruct)
