RML Elements

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

When parsing a tag libRocket will look up custom elements associated with the tag name and fall back to a generic element. Very few custom elements are required as most of the power in libRocket comes from styling elements with RCSS to produce the desired layout.

The user is encouraged to follow standard HTML guidelines where possible to improve readability across the community. For more information on setting up libRocket to emulate HTML4 see Appendix: HTML4 Style Sheet.

Global Attributes

Elements have a base set of attributes that are common to across all types, which are:

id

The unique identifier for the element in this document.

class

Assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters. See RCSS.

style

Specifies inline style information for the element. See RCSS.

on* events

Event bindings. See Events.

List

The following is a list of elements supported by RML inside FSO:

  • <rml>
  • <head>
  • <title>
  • <link>
  • <body>
  • <img>
  • <ani>
  • <handle>
  • <style>
  • <datagrid>
  • <col>
  • <form>
  • <input>
  • <textarea>
  • <select>
  • <option>
  • <dataselect>
  • <tabset>
  • <tab>
  • <panel>