---
title: "Dlgs"
---
# Dlgs

Defined in: [src/core/traits/dlgs.ts:17](https://github.com/xdan/jodit/blob/main/src/core/traits/dlgs.ts#L17)

## Extended by

- [`Jodit`](./jodit.Jodit.html)
- [`FileBrowser`](./file_browser.FileBrowser.html)

## Implements

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

### Constructor

**new Dlgs**(): `Dlgs`

#### Returns

`Dlgs`

### dlg()

**dlg**(`this`, `options?`): [`IDialog`](../interfaces/types.IDialog.html)

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

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\> & [`IDlgs`](../interfaces/types.IDlgs.html) |
| `options?` | [`IDialogOptions`](../interfaces/types.IDialogOptions.html) |

#### Returns

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

#### Implementation of

[`IDlgs`](../interfaces/types.IDlgs.html).[`dlg`](../interfaces/types.IDlgs.html#dlg)

***

### confirm()

**confirm**(`this`, `msg`, `title`, `callback?`): [`IDialog`](../interfaces/types.IDialog.html)

Defined in: [src/core/traits/dlgs.ts:42](https://github.com/xdan/jodit/blob/main/src/core/traits/dlgs.ts#L42)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\> & [`IDlgs`](../interfaces/types.IDlgs.html) |
| `msg` | `string` |
| `title` | `string` \| ((`yes`) => `void`) \| `undefined` |
| `callback?` | (`yes`) => `false` \| `void` |

#### Returns

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

#### Implementation of

[`IDlgs`](../interfaces/types.IDlgs.html).[`confirm`](../interfaces/types.IDlgs.html#confirm)

***

### prompt()

**prompt**(`this`, `msg`, `title`, `callback`, `placeholder?`, `defaultValue?`): [`IDialog`](../interfaces/types.IDialog.html)

Defined in: [src/core/traits/dlgs.ts:58](https://github.com/xdan/jodit/blob/main/src/core/traits/dlgs.ts#L58)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\> & [`IDlgs`](../interfaces/types.IDlgs.html) |
| `msg` | `string` |
| `title` | `string` \| (() => `false` \| `void`) \| `undefined` |
| `callback` | (`value`) => `false` \| `void` |
| `placeholder?` | `string` |
| `defaultValue?` | `string` |

#### Returns

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

#### Implementation of

[`IDlgs`](../interfaces/types.IDlgs.html).[`prompt`](../interfaces/types.IDlgs.html#prompt)

***

### alert()

**alert**(`this`, `msg`, `title?`, `callback?`, `className?`): [`IDialog`](../interfaces/types.IDialog.html)

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

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\> & [`IDlgs`](../interfaces/types.IDlgs.html) |
| `msg` | `string` \| [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `title?` | `string` \| (() => `false` \| `void`) |
| `callback?` | `string` \| ((`dialog`) => `false` \| `void`) |
| `className?` | `string` |

#### Returns

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

#### Implementation of

[`IDlgs`](../interfaces/types.IDlgs.html).[`alert`](../interfaces/types.IDlgs.html#alert)
