The Microphone component for Retool Mobile
A button to record audio.
Recordings are Base64-encoded in WebM format, and audio playback displays a progress bar and elapsed time.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
buttonSize
The size of the button.
Type | string | ||||||
Mutability |
| ||||||
Allowed Values |
|
Object Properties
Examples
1617024000000
hidden
Whether this object is hidden from view.
Type | boolean | ||||||
Format | True/False | ||||||
Mutability |
| ||||||
Default |
|
Examples
true
isPublic
Whether to make the file public when uploading with Retool Storage.
Type | boolean | ||||
Mutability |
|
Examples
true
uploadToRetoolStorage
Whether to upload a file to Retool Storage.
Type | boolean | ||||
Mutability |
|
Examples
1280
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
microphone.clearValue()
Clear the current values.
microphone.clearValue()
Examples
Clear the current value of microphone
.
microphone.clearValue();
microphone.reset()
Reset all child inputs to default values or clears them if no default values are set.
microphone.reset()
Examples
Reset microphone
.
microphone.reset();
microphone.resetValue()
Reset the current value to the default value.
microphone.resetValue()
Examples
Reset the current value of microphone
.
microphone.resetValue();
microphone.setDisabled()
Set the disabled
value to toggle whether the input field is disabled. Defaults to true
without a parameter.
microphone.setDisabled(disabled)
Parameters
disabled
Whether input, interaction, selection, or triggering is disabled.
Type | boolean |
Format | True/False |
Default |
|
Examples
true
Examples
Disable microphone
.
microphone.setDisabled(true);
Enable microphone
.
microphone.setDisabled(false);
microphone.setHidden()
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
microphone.setHidden(hidden)
Parameters
Examples
true
Examples
Hide microphone
.
microphone.setHidden(true);
Unhide microphone
.
microphone.setHidden(false);
microphone.setValue()
Set the current value.
microphone.setValue(value)
Examples
Set the current value of microphone
to userValue
.
microphone.setValue(userValue);
Events
Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.
Event | Description |
---|---|
Change | The value is changed. |