RML Controls

From FreeSpace Wiki
Revision as of 21:04, 21 April 2023 by MjnMixael (talk | contribs) (Created page with "{{RML}} Controls are used to allow dragging are tabbing elements. ==<handle>== The <handle> element can be used to move or change the size of elements. ===Attributes=== ====...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Librocket RML references
Elements
Documents
Images
Style Sheets
Forms
Controls
Data Display
Templates
Events

Controls are used to allow dragging are tabbing elements.

<handle>

The <handle> element can be used to move or change the size of elements.

Attributes

move_target

If specified, the handle will move the element specified by the ID when dragged. Can be #document to reference the parent document.

size_target

If specified, the handle will size the element specified by the ID when dragged. Can be #document to reference the parent document.

<handle move_target="#document">
	<div id="title">My document</div>
</handle>

<tabset>

A <tabset> element contains <tab> elements and <panel> elements.

<tab>

Each <tab> element acts as a button, that when clicked will hide the currently visible panel and show its corresponding panel.

<panel>

A <panel> element is the body of the tabset. The visibility of the panel is controlled by the tab elements in the parent tabset.