Interface ViewObjectPageBindings

Component bindings to configure a page viewer for a read-only view of an existing object.

interface ViewObjectPageBindings {
    bindingsType: ViewObject;
    containerClass?: string;
    docId: string;
    docType: string;
    enableSheets?: boolean;
    eventName: OPEN | INSPECT | SUMMARY;
    fitToContainerHeight?: boolean;
    onChange?: ((change: PageDataChange | PageModeChange) => void);
    onDirty?: ((isDirty: boolean) => void);
    pageClass?: string;
    setApi?: ((api: PageViewerApi) => void);
    showToolbar?: boolean;
    templateUuid?: string;
}

Hierarchy (view full)

Properties

bindingsType: ViewObject
containerClass?: string

Assign the given CSS classes to the page viewer's container. This is the element which encompasses the main document view and the toolbar.

docId: string

Object ID

docType: string

Entity type of the object.

enableSheets?: boolean

Enable workspace and insight tabs to be rendered.

eventName: OPEN | INSPECT | SUMMARY

Page context to use.

fitToContainerHeight?: boolean

If true, the page viewer will fill its parent element's height.

onChange?: ((change: PageDataChange | PageModeChange) => void)

A callback which is called when the pageModel's mode or data changes.

onDirty?: ((isDirty: boolean) => void)

A callback which is called when the page viewer dirty state changes.

pageClass?: string

Assign the given CSS classes to the page viewer's main section. This is the element which displays the main document, excluding toolbar.

setApi?: ((api: PageViewerApi) => void)

A callback which is called when the page viewer is initialized. It provides an API which can be used to check the page viewer state and save the document.

showToolbar?: boolean

Show the page toolbar. This contains the toolbar actions associated with the object's Entity type.

templateUuid?: string

Use the given page template by UUID regardless of page context.