Example thumbnail image
Description
Draw a table of events or other data. A number of <columns> can be defined containing elements: <name> Allows a <renderer> defined inside a <source> to refer back to this column. Also used as the table header text if <label> is omitted. <label> Text for the column header. <description> An optional column tooltip. <template> A Django template applied to each piece of data to render the text for this column. Can be overridden using <render> elements inside individual <source> elements. <sort> Set to "ascending" to sort on this column. And a number of data <sources> can be given with: <event> This element can be repeated to list all the event class names to be retrieved <condition> A template which if it evaluates to string "drop", this row is removed from the final output. Or if evaluated to "keep", keep the row and stop processing. <render> One or more render conditions, each one containing a <column> element specifying the column name to render and <template> for the template itself. <keep> Specify a different <template> response that means we keep the packet. Is a regular expression. <drop> Specify a different <template> response that means we keep the packet. Is a regular expression. A template is a Django template. For events this can use items: {{start}} Start time {{stop} Stop time {{description}} Event class <description> text {{classname}} Event class name {{duration}} Length of the event {{properties}} Instance properties dictionary, i.e. {{properties[abc]}} to access individual properties {{start_orbit}} Orbit number at start of event, for LEO projects {{stop_orbit}} Orbit number at end of event, for LEO projects {{latitude}} Latitude at start of event, for LEO projects {{longtude}} Longitude at start of event, for LEO projects
Implementation
Browse source code here.
Configuration options
Name | Description | Quantisation | Default | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
title | Title for the table | optional | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
column | Define each single table column | multiple |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
source | Declare on input data source | multiple |
|
Example
<table> option 1 option 2 ... </table>
This shows an example of the basic declaration of the widget with no options. Options are added as:
<name>value</name>