widget.constants
WidgetConstants : d2/sdk/utils/widget.constants
A few utility constants related to widgets
Extends: Object
- WidgetConstants :
d2/sdk/utils/widget.constants
- .TileConfigTypes :
Object
- .D2 :
Object
- .DEFAULT :
Object
- .TileConfigTypes :
WidgetConstants.TileConfigTypes : Object
Tile config types.
Kind: static property of WidgetConstants
Properties
Name | Type | Description |
---|---|---|
NONE | string | This tile requires a widget config |
WIDGET | string | 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
Name | Type | Description |
---|---|---|
RECENTLY_ACCESSED | string | RecentlyAccessedWidget |
CHECKOUT | string | CheckoutDocumentWidget |
DOCLIST | string | DoclistWidget |
FAVORITES | string | FavoritesWidget |
BRAVACSR | string | BravaCSRViewerWidget |
OPENURL | string | OpenURLWidget |
RELATIONS | string | DetailsRelationsWidget |
RENDITIONS | string | DetailsRenditionsWidget |
VERSIONS | string | DetailsVersionsWidget |
PROPERTIES | string | Properties |
SEARCH | string | SearchWidget |
MYSHARES | string | SharedDocumentWidget |
VDOC | string | VirtualDocWidget |
TASKS | string | TasksWidget |
WORKFLOWS | string | WorkflowOverviewWidget |
TASK_ATTACHMENTS | string | TaskAttachmentWidget |
BRAVAENTERPRISE | string | BravaEnterpriseViewerWidget |
BRAVAIV | string | 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
Name | Type | Description |
---|---|---|
VERSIONS | string | versionwidget |
RENDITIONS | string | renditionwidget |
RELATIONS | string | relationwidget |
SEARCH | string | doclistsearchresultswidget |
DOCLIST | string | doclistwidget |
FAVORITES | string | favoriteswidget |
BRAVACSR | string | bravacsrwidget |
VDOC | string | vdocwidget |
TASKS | string | taskswidget |
TASK_ATTACHMENTS | string | taskattachmentswidget |
MY_WORKFLOWS | string | myworkflowswidget |
ALL_WORKFLOWS | string | allworkflowswidget |
BRAVAENTERPRISE | string | bravaenterprisewidget |
BRAVAIV | string | otivwidget |