RML DataDisplay

From FreeSpace Wiki
Jump to: navigation, search
Librocket RML references
Elements
Documents
Images
Style Sheets
Forms
Controls
Data Display
Templates
Events

Data grids are a kind of table display.

<datagrid>

<datagrid> represents an element capable of fetching, positioning and rendering dynamic tabulated data. For a detailed description see Data grid in the C++ Manual.

Attributes

source

The name of the data source and table that the rows of the data grid will be fetched from.

<col>

The <col> element represents a column in the datagrid. Each column displays information about each row in the data source in the form of one or more fields.

Attributes

fields

A comma-separated list of fields that this column will fetch from the data source about each row and display.

formatter

The name of the data formatter to use to turn the raw field information into RML. If not set (or the formatter can’t be found) then the raw text will be displayed.

width

The width (in px or %) of the column.