Skip to content

@serenity-is/corelib / IEditDialog

Abstract Class: IEditDialog

Defined in: src/interfaces/ieditdialog.ts:6

Type token for dialogs that can load an entity by id or instance.

Constructors

Constructor

new IEditDialog(): IEditDialog

Returns

IEditDialog

Properties

[typeInfo]

static [typeInfo]: InterfaceTypeInfo<"Serenity.">

Defined in: src/interfaces/ieditdialog.ts:7

Methods

load()

load(entityOrId, done, fail?): PromiseLike<RetrieveResponse<any>>

Defined in: src/interfaces/ieditdialog.ts:18

Loads an entity into the dialog.

Parameters

entityOrId

any

Entity instance or primary key value.

done

() => void

Callback invoked after successful load.

fail?

(p1) => void

Optional callback invoked on failure.

Returns

PromiseLike<RetrieveResponse<any>>

Promise-like for the retrieve response.