
148 vFoglight
Web Component Guide
Renderers
Setting Renderers, Icons and Units in Views
Configuring how data is displayed in a dashboard is determined in the view definition,
but relies on the existence of renderers, icons and mappings that are configured
separately from the view.
Renderers Tab
Renderers are created and configured in the Renderers tab in the Module Contents pane.
Renderers determine the display of data. For example, the number of decimal places
shown by a value inside a table cell is decided by a Number Renderer instance, the
display of data as an icon is determined by an Icon Renderer instance, and the display of
a metric as a time plot chart is configured using a Time Plot Renderer instance.
At runtime, data in a vFoglight dashboard displays depending on which renderers are set
in the view definition and which renderer has been mapped to a data value's type,
property or unit. Renderers can be mapped to types and properties in the Types tab or to
units in the Units tab. Mapped renderers are looked up automatically at runtime if no
specific renderer has been set in the view definition.
Overriding a Default Renderer
All the units supported by vFoglight Core are associated with a default renderer. These
associations can be found in the Core: System module under the Units tab. For example,
a percent unit is associated with the Percent Renderer.
To define a new renderer:
1
In the Module List pane, select the module that should contain the renderer.
2
Select the Renderers tab in the Module Contents pane.
3
Click the Add button and choose either a Blank renderer or a Copy of an
existing renderer.
If you choose a blank renderer, select one from the Type drop-down list.
A New Renderer tab appears in the Definitions pane.
4
In the General tab, give the new renderer a name and supply an appropriate
description.
Comentarios a estos manuales