Skip to main content

widget.constants

WidgetConstants : d2/sdk/utils/widget.constants

A few utility constants related to widgets

Extends: Object

WidgetConstants.TileConfigTypes : Object

Tile config types.

Kind: static property of WidgetConstants
Properties

NameTypeDescription
NONEstring

This tile requires a widget config

WIDGETstring

This tile requires a widget config

WidgetConstants.D2 : Object

OOTB D2 widget types that has an implementation within the D2 Smart View runtime

Kind: static property of WidgetConstants
Properties

NameTypeDescription
RECENTLY_ACCESSEDstring

RecentlyAccessedWidget

CHECKOUTstring

CheckoutDocumentWidget

DOCLISTstring

DoclistWidget

FAVORITESstring

FavoritesWidget

BRAVACSRstring

BravaCSRViewerWidget

OPENURLstring

OpenURLWidget

RELATIONSstring

DetailsRelationsWidget

RENDITIONSstring

DetailsRenditionsWidget

VERSIONSstring

DetailsVersionsWidget

PROPERTIESstring

Properties

SEARCHstring

SearchWidget

MYSHARESstring

SharedDocumentWidget

VDOCstring

VirtualDocWidget

TASKSstring

TasksWidget

WORKFLOWSstring

WorkflowOverviewWidget

TASK_ATTACHMENTSstring

TaskAttachmentWidget

BRAVAENTERPRISEstring

BravaEnterpriseViewerWidget

BRAVAIVstring

OpenTextIntelligentViewingWidget

WidgetConstants.DEFAULT : Object

OOTB Default widet types available in D2 Smart View runtime.

All of these default widget type names(including any new ones introduced by a D2 Plugin) could be calculated by normalizing the default widget's XML tagname from the Smart View landing page xml configuration. In the normalization process any special non-word character from the tagname needs to be removed.

For an example if the xml tag name is <my-custom-wdiget></my-custom-widget>, it normalizes into mycustomwidget after removing all the '-' characters. Another example <task-attachments-widget></task-attachments-widget> to taskattachmentswidget.

Kind: static property of WidgetConstants
Properties

NameTypeDescription
VERSIONSstring

versionwidget

RENDITIONSstring

renditionwidget

RELATIONSstring

relationwidget

SEARCHstring

doclistsearchresultswidget

DOCLISTstring

doclistwidget

FAVORITESstring

favoriteswidget

BRAVACSRstring

bravacsrwidget

VDOCstring

vdocwidget

TASKSstring

taskswidget

TASK_ATTACHMENTSstring

taskattachmentswidget

MY_WORKFLOWSstring

myworkflowswidget

ALL_WORKFLOWSstring

allworkflowswidget

BRAVAENTERPRISEstring

bravaenterprisewidget

BRAVAIVstring

otivwidget