Interface ControlPageApiBase

Methods related to the page to which a control belongs.

interface ControlPageApiBase {
    field: ControlPageFieldApi;
    file: ControlFileApiBase;
    isExternalObject: boolean;
    isHomepage: boolean;
    objectId: string;
    objectName: string;
    getMode(): PageMode;
    onChange(handler: ((change: PageDataChange | PageModeChange) => void)): void;
}

Hierarchy (view full)

Properties

Methods that relate to object fields associated with the page.

Methods related to files associated with the page.

isExternalObject: boolean

Checks if the object is external.

isHomepage: boolean

Checks if the page is a Home page.

objectId: string

The object ID, if applicable. Otherwise "".

objectName: string

The object name, if applicable. Otherwise "".

Methods

  • Returns the mode of the page on which the calling control resides.

    Returns PageMode

    The current PageMode.

  • 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.

    Parameters

    Returns void