input
- Last UpdatedJul 04, 2023
- 2 minute read
The input statement can be used only inside a defmodule to create a module input field. Module input fields are used to interact with a module in realtime and cannot be set at module definition.
Any module instance will have a corresponding field named as input_%input name% of the declared type.
Platform support
This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P Hololens platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Full support |
Full support |
Full support |
Full support |
|
|
|
|
|
|
Code example
This is a code example for an input statement.
<input name="aString" type="sstring" />
Fields
These are the fields for an input statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
name |
sstring |
Mandatory |
The name of the input field of the module template. |
|
|
type |
sstring |
Mandatory |
|
Defines the input field type. |