Skip to content

EditSession

Defined in: core/src/events/session.ts:85

The edit session of a chart (edit.* of the facade), see createEditSession. At most one session is open at a time. Its methods need no this.

readonly begin: () => SessionBeginResult

Defined in: core/src/events/session.ts:87

Opens a session on the current data.

SessionBeginResult


readonly commit: () => SessionCommitResult

Defined in: core/src/events/session.ts:89

Closes the session and keeps the data; returns the aggregated changes.

SessionCommitResult


readonly dispose: () => void

Defined in: core/src/events/session.ts:102

Stops tracking: no more events; begin, commit and rollback resolve cancelled. The store is left as it is (an open session stays in it). Idempotent.

void


readonly getChanges: () => SessionChanges | undefined

Defined in: core/src/events/session.ts:93

The aggregated changes since begin() (selectSessionChanges); undefined when closed.

SessionChanges | undefined


readonly isDirty: boolean

Defined in: core/src/events/session.ts:97

Whether a session is open and has changes.


readonly isOpen: boolean

Defined in: core/src/events/session.ts:95

Whether a session is open.


readonly rollback: () => SessionRollbackResult

Defined in: core/src/events/session.ts:91

Closes the session and returns to its base; never vetoed by the before-hooks.

SessionRollbackResult