Skip to main content
Version: 1.x

Function: getObjectPageLayout()

getObjectPageLayout(page, options?): Promise<string>

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

Finds the sap.uxap.ObjectPageLayout control on the current page.

Parameters

page

ObjectPagePage

Page to evaluate on.

options?

ObjectPageOptions

Optional timeout settings.

Returns

Promise<string>

The control ID of the ObjectPageLayout.

Intent

Discover the Object Page layout control on a Fiori Elements Object Page.

Throws

ControlError if no ObjectPageLayout is found.

Example

const layoutId = await getObjectPageLayout(page);