Methods related to the hookable events associated with the page.
Readonly
fieldMethods that relate to object fields associated with the page.
Methods related to the files associated with the page.
Readonly
isChecks if the object is external.
Readonly
isChecks if the page is a Home page.
Access the Page Data Masking API
Readonly
objectThe object ID, if applicable. Otherwise "".
Readonly
objectThe object name, if applicable. Otherwise "".
Adds a refreshable control to the page.
{Control} Control to add.
{function} Function to be called when the control is refreshed. There are no parameters. Returns void.
Optional
options: RefreshablePageControlOptions{RefreshablePageControlOptions} Options to be added to the refreshable control.
Takes a page out of edit mode. Promise resolves with a boolean value to determine if the user has saved or not. If the user has not saved, the user is prompted to do so.
{boolean} Checks if the tab should close after edit mode is cancelled.
A Promise that resolves when the edit has been cancelled.
Registers a function to be invoked whenever a relevant change happens. The handler receives an object that gives information about the change event. There are two types of changes - PageDataChange when the data in the page model changes, and PageModeChange when the page mode changes.
{function} Function to be invoked when there is a change. Parameter (change) is of type PageDataChange or PageModeChange. Returns void.
Registers a function to be invoked whenever one of the calling control's properties change.
{function} Function to be invoked on property change. Parameters are (category: string, property: string, currentValue: any, previousValue: any).
A function that stops the handler from being invoked.
Triggers a certain type of notification for users. For example, a type EDIT_FAIL notification if a sheet has failed to be added to a workspace.
{string} Message to be displayed on the notification.
{string} Type of notification. For example LOCK, EDIT_FAIL, VERSION_MISMATCH.
Optional
autoDismissDuration: number{number} Length of time before the notification should be dismissed.
Refreshes a control when updated data is displayed. By default, attempts to refresh all controls. Specify categoryToRefresh or controlToRefresh to restrict what is refreshed.
Optional
categoryToRefresh: string{(string|undefined)} Name of the category to be refreshed.
Optional
controlToRefresh: Control<TypeAttributes>{Control} Individual control to be refreshed.
Removes a refreshable control from the page.
{Control} Control to be removed.
Saves a page after editing.
{boolean} Checks if the page should leave edit mode after it is saved.
{boolean} Checks if the page should be closed after it is saved.
A Promise which resolves when the page has been saved.
Toggle the page-level sliding panel. This panel should be used to contain information that is supplementary to the document, for example attachments or workflow tasks.
Optional
sectionLabel: string{string} Describes the section, this should be internationalized.
Optional
content: SlidingPanelContent<T>{SlidingPanelContent} The content of the sliding panel.
Optional
panelProperties: SlidingPanelProperties{SlidingPanelProperties} Properties for the panel. When providing a url for content: the panel properties will be available on the controller's "slidingPanel" object. When providing a selector for content: the properties will be set on the element to be created.
Optional
onClose: (() => void){function} A callback function invoked when the panel is dismissed. There are no parameters. Returns void.
Optional
focusPreviousActiveElementOnClose: boolean{boolean} Toggle for whether the app should apply focus to the last active element before the panel was opened.
ControlPageApiBase extension that provides more functionality.