Methods
Generates the header object for the website. This provides links
to the settings and wifi pages. It also loads the CymaSpace logo
for display.
- Source:
Returns:
The HTML object for the header.
Modal(isOpen, onClose)
Parameters:
Name |
Type |
Description |
isOpen |
|
If the Modal should be displayed. |
onClose |
|
Should the Modal close if clicked. |
- Source:
Returns:
The Modal HTML object.
MultiRangeSliderWrapper(min, max, selectedLow, selectedHigh, minRef, maxRef, update)
Parameters:
Name |
Type |
Description |
min |
|
The minimum value selectable by the slider. |
max |
|
The maximum value selectable by the slider. |
selectedLow |
|
The currently selected low value. |
selectedHigh |
|
The currently selected high value |
minRef |
|
The structure refrence for the minimum value. |
maxRef |
|
The structure reference for the maximum value. |
update |
|
A function which updates an external data structure. |
- Source:
Returns:
The UI element itself.
NumericSlider(label, min, max, initial, structure_ref, update)
Parameters:
Name |
Type |
Description |
label |
|
The label that is displayed alongside the slider. |
min |
|
The minimum value selectable by the slider. |
max |
|
The maximum value selectable by the slider. |
initial |
|
The initial value shown by the slider. |
structure_ref |
|
The string reference to store values at. |
update |
|
A function to update an external data structure. |
- Source:
Returns:
The UI element itself.
Password(prompt, password, onPasswordChange)
Parameters:
Name |
Type |
Description |
prompt |
|
The prompt that explains utilization to the user. |
password |
|
The currently entered password. |
onPasswordChange |
|
A function that updates the parent object with
the new user-entered password. |
- Source:
Patterns(initialID, structure_ref, update, patterns)
Parameters:
Name |
Type |
Description |
initialID |
|
The pattern ID to display initially. |
structure_ref |
|
The string reference to store values at. |
update |
|
A function to update an external data structure. |
patterns |
|
A list of patterns and their IDs. |
- Source:
Returns:
The UI element itself.
PatternSettings(num, patterns)
Parameters:
Name |
Type |
Description |
num |
|
The ID of the pattern to display |
patterns |
|
A list of patterns and their IDs |
- Source:
Save_Entry(name, idx)
Parameters:
Name |
Type |
Description |
name |
|
The displayed name of the save slot. |
idx |
|
The ID of the slot to save/load to/from. |
- Source:
Returns:
The UI element itself.
Settings()
- Source:
SimpleChooser(label, options, noSelection, initial, structure_ref, update)
Parameters:
Name |
Type |
Description |
label |
|
The string label to show alongside the selector. |
options |
|
The list of options and their IDs. |
noSelection |
|
If unchecking a box is allowed. Produces an ID of 0. |
initial |
|
The initial ID to select. |
structure_ref |
|
The string reference to store values at. |
update |
|
A function to update an external data structure. |
- Source:
SystemControls()
- Source:
useInterval(callback, delay)
Parameters:
Name |
Type |
Description |
callback |
*
|
The function or code to run. |
delay |
*
|
The delay between function calls. |
- Source:
Wifi()
- Source:
WiFiModal(isOpen, onClose, ssid, audioLuxUrl)
Parameters:
Name |
Type |
Description |
isOpen |
|
If the modal should be shown to the user |
onClose |
|
The function to be executed when the modal is clicked. |
ssid |
|
The ssid of the bridged network. |
audioLuxUrl |
|
The URL of the AudioLux on the bridged network. |
- Source: