groupingProperty |
This property is used to group artifacts based on their custom properties. At run time, the artifacts associated with a custom property are grouped together and the custom property is displayed as the header of the group.
A context-menu displays on the header of each group of artifacts. The options available in the context-menu are:
- Collapse All But This: Select to collapse all groups other than the group on which this menu option is selected.
- Collapse All: Select to collapse all groups.
- Expand All: Select to expand all groups.
Syntax
Inline HTML |
<div id="artifactViewer1" class="artifactviewer vertical" viewmode="list" enablecontextmenu="true" enableFind = true groupingProperty ="propertyType"> ... </div> Or artifactViewer1.groupingProperty = "propertyType"; |
You can set custom properties in the artifact schema as shown below.
<artifact:schema xmlns:artifact ='http://schemas.cordys.com/eibus/artifact/1.0'> <artifact:id/> <artifact:name/> <artifact:title/> <artifact:description/> <artifact:icon/> <artifact:applicationDefinition/> <artifact:info/> //setting 'type' as the custom property <artifact:customProperties> <propertyType>type</propertyType> </artifact:customProperties> </artifact:schema >
The following sample code demonstrates an artifact data with the custom property.
<webservices> <Application> <id>cordysweb</id> <url>http://www.cordys.com</url> <name>Cordys</name> <title>click here to open Process Platform website</title> <description>BOP</description> </Application> //specifying a value for the 'type' custom property <type>Web site</type> </webservices>