Skip to content

warp view tile

Xavier Marin edited this page Oct 12, 2021 · 7 revisions

Tile view

Execute WarpScript against a Warp 10 instance and display result according to a graph type;

CSS vars

  • Tooltip
    • --warp-view-tooltip-color
    • --warp-view-tooltip-bg
    • --gts-classname-font-color
    • --gts-labelname-font-color
    • --gts-attrname-font-color
    • --gts-separator-font-color
    • --gts-labelvalue-font-color
    • --gts-attrvalue-font-color
  • Size
    • --warp-view-chart-width
    • --warp-view-chart-height
  • Colors
    • --warp-view-font-color
    • --warp-view-chart-grid-color
    • --warp-view-annotationtooltip-font-color
    • --warp-view-annotationtooltip-value-font-color

Specific attributes

See common attributes

Events

See common events

Data format

GTS, GTS array or complex data.

Please refer to the format expected by the visualization.

Specific complex data params

See common params

Please refer to the specific parameters expected by the visualization.

Specific options and globalParams

See common options

Please refer to the specific options expected by the visualization.

Name Type Default Description
autoRefresh number -1 Interval in seconds to execute again the WarpScript. Use -1 to disable it
showErrors boolean true Display error messages
showStatus boolean true Display execution status

Sample

 <warp-view-tile 
  url="warp 10 url" 
  responsive="true" 
  unit="°C" 
  type="text"
  chart-title="Text">
  { 'data' 42 'globalParams' { 'bgColor' 'darkblue' 'fontColor' 'cyan' } }
</warp-view-tile>