Constructor
new DisplayItem(title, key)
Instantiate a new display item. Overwrite this method in a custom class to provide own content and badge.
Parameters:
Name | Type | Description |
---|---|---|
title |
String | The title for this display item (displayed, human readable) |
key |
String | The key for this displa item (unique, not displayed) |
Members
(nullable) badge :String
The optional badge which will be displayed above the display item's title at the navigation bar.
Type:
- String
content :String
The HTML content for this display item. This string will be inserted in
the SPA when the user clicks on the display item's navigation element. It
should contain all the necessary CSS and JS inline (see the README at
/modules/ui/tasklist/README.md
for further instructions on how to
generate this part).
Type:
- String
key :String
The unique key for identifying this display item. This key will be used as part of the path for the endpoints of this display item and thus needs to be chosen carefully as it will be accessible through the API under this name in case of HTTP.
Type:
- String
title :String
The title for this display item. It is displayed and should be human-readable. It will be shown in the navigation bar as the title of the navigation item for this display item. Please use a short (preferrably one word) description of your display item.
Type:
- String
Methods
getEndpoints() → {module:@proceed/ui.Endpoints}
Return the endpoints of this display item. Overwrite this method to specify the endpoints for get and post requests for your display item.
Returns:
The endpoints for this display item