Skip to main content
Version: 1.x

Function: isInEditMode()

isInEditMode(page): Promise<boolean>

Defined in: src/fe/object-page.ts:320

Checks whether the Object Page is currently in edit mode.

Parameters

page

ObjectPagePage

Page to evaluate on.

Returns

Promise<boolean>

true if in edit mode, false otherwise.

Intent

Determine the current edit/display state of the Object Page.

Remarks

Checks showFooter property and ui model /editable//editMode.

Example

const editing = await isInEditMode(page);