Methods related to the hookable events associated with the page.
ReadonlyfieldMethods that relate to object fields associated with the page.
Methods related to the files associated with the page.
ReadonlyisChecks if the object is external.
ReadonlyisChecks if the page is a Home page.
Access the Page Data Masking API.
ReadonlyobjectThe object ID. Returns an empty string ("") if not applicable.
ReadonlyobjectThe object name. Returns an empty string ("") if not applicable.
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.
Optionaloptions: 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 canceled.
A Promise that resolves when the edit has been canceled.
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.
Register a callback function that is invoked when the page that contains the current control is navigated back to. Useful for updating homepage controls whose config sets "reuse" to true and need to update when the homepage is reloaded.
{function} The function to be invoked.
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.
OptionalautoDismissDuration: 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.
OptionalcategoryToRefresh: string{(string|undefined)} Name of the category to be refreshed.
OptionalcontrolToRefresh: 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 that 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.
OptionalsectionLabel: string{string} Describes the section; this should be internationalized.
Optionalcontent: SlidingPanelContent<T>{SlidingPanelContent} The content of the sliding panel.
OptionalpanelProperties: 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.
OptionalonClose: (() => void){function} A callback function invoked when the panel is dismissed. There are no parameters. Returns void.
OptionalfocusPreviousActiveElementOnClose: 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.