Nutrient Web SDK

ReferenceSidebarOptions

Type Alias SidebarOptions

This object includes different options that specific to some of the available sidebar modes.

The annotations sidebar and the OCGs Sidebar can be customized. For example, in the annotations sidebar one can define the record types to show in the annotation sidebar, as well as expanding it by optionally rendering comments in that sidebar. Meanwhile, In the Ocgs sidebar one can define which ocgs should not have their visibility toggled via the UI.

Type Alias
Type Signature
type SidebarOptions<T> = T extends AnnotationsSidebarOptions
    ? { ANNOTATIONS: AnnotationsSidebarOptions }
    : T extends LayersSidebarOptions
        ? { LAYERS: LayersSidebarOptions }
        : T extends AttachmentsSidebarOptions
            ? { ATTACHMENTS: AttachmentsSidebarOptions }
            : never

Type Parameters

T