Input Types
===========
rappture2web supports all standard Rappture input widget types.
Number
------
A floating-point input with optional units, min/max bounds, color bar, and presets.
.. code-block:: xml
Ambient temperature in the device region.K50K1000K300Kpurple300K
Reading in Python:
.. code-block:: python
T_str = rx['input.(temperature).current'].value # "300K"
T = float(Rappture.Units.convert(T_str, to='K', units='off')) # 300.0
Integer
-------
An integer input with optional min/max bounds.
.. code-block:: xml
1010000200
Boolean
-------
A checkbox that produces ``yes`` or ``no``.
.. code-block:: xml
no
String
------
A text input. Add ```` with a ``WxH`` format for multiline:
.. code-block:: xml
40x5Enter notes here
Choice
------
A dropdown select:
.. code-block:: xml
fermi
Multichoice
-----------
Multiple checkboxes for selecting several options:
.. code-block:: xml
Loader
------
Loads example XML files that pre-populate other inputs:
.. code-block:: xml
examples/*.xml
Group
-----
Groups child inputs under a labeled section:
.. code-block:: xml
1e-6
Phase
-----
Creates tab pages for multi-step workflows:
.. code-block:: xml
......
Note
----
Read-only HTML or text content, often loaded from a file:
.. code-block:: xml
file://description.html
Structure
---------
A 3D molecular/crystal structure viewer with associated parameters:
.. code-block:: xml
...nm2nm
Periodic Element
----------------
An interactive periodic table for selecting chemical elements.
Drawing
-------
A 2D canvas with interactive hotspots for adjusting parameters visually.
Separator
---------
A horizontal line between inputs for visual grouping:
.. code-block:: xml