The document explains metadata of a view-plugin that shows the application data for the customers subscribed to the application services.
In this document:
The <presentation> section of the service specified by the navigation variable or by the apsType
property
of the view-plugin allows you to define the following style properties of a tile in the Home dashboard.
PROPERTY |
EXAMPLE |
DESCRIPTION |
---|---|---|
|
<name>VPS Management</name> |
A string that defines the title. |
|
<summary>Virtual servers, their states, and resource usage</summary> |
Explanation of the data presented in the tile. |
|
<icon path=”images/icon.png”/> |
Path to an icon displayed on the bottom-right corner of the tile. |
|
<color>#34495E</color> |
Background color in RGB format. |
|
<font-color>#34495E</font-color> |
Font color in RGB format. |
Note
1. The definition of the following presentation elements must comply with this specific order:
icon
-> color
-> font-color
.
The <color></color> and <font-color></font-color> pairs must contain a hex value without spaces.
This section continues the demo project started in the previous step.
Declare the navigation tree plugged into UX1 for customers with a single view-plugin. The view-plugin must plug itself into the Home dashboard. Add a variable referring to the APS type implementing the subscription service.
Once you have done it, the navigation section must look as follows:
<navigation id="plugins">
<view-plugin id="vpsDashboardPlugin" src="ui/plugins/vpsDashboardPlugin.js">
<plugs-to id="http://www.parallels.com/ccp-dashboard#dashboard"/>
<var name="context" type-id="http://aps-standard.org/samples/basic1pdash/context/1.0"/>
</view-plugin>
</navigation>
Require a custom visualization style by means of style properties in the presentation
section
of the contexts
service, as in the following example:
<service id="contexts">
<code engine="php" path="scripts/contexts.php"/>
<presentation>
<name>VPS Management</name>
<summary>VPS management environment</summary>
<icon path="images/icon.png"/>
<color>#34495E</color>
<font-color>#FFFFFF</font-color>
</presentation>
</service>
Note
Do not use spaces in the color
and font-color
definitions.
This completes development of the metadata. You can find the similar APP-META.xml
file in the
sample package
.