Element API
Each signal is fired when a new value is set to an element, some may not if the second argument to the setting function is true.
section (copy)
Table
This creates a fake section openable by the cog icon next to your element label. This fake section's create_element function has identical functionality to juju.create_element, just without the section name arg.
None
N/A
Toggle
on_toggle_change
This signal is fired the first argument being the new value of the toggle
set_toggle
None
Sets the toggle state to the first argument
Slider
on_slider_change
This signal is fired the first argument being the new value of the slider
set_slider
Number
Sets the slider value to the first argument
Dropdown
on_dropdown_change
This signal is fired the first argument being the new value of the dropdown
set_dropdown
None
Sets the selected dropdown options to the first argument
set_options
None
Sets the dropdown's available options to the first argument
Colorpicker
on_transparency_change
This signal is fired with the first argument being the new transparency of the colorpicker
on_color_change
This signal is fired with the first argument being the new color of the colorpicker
set_colorpicker_transparency
None
Sets the colorpicker transparency to the first argument
set_colorpicker
None
Sets the colorpicker color to the first argument
Textbox
on_textbox_change
This signal is fired with the first argument being the new value of the textbox
set_textbox
None
Sets the textbox value to the first argument
Button
on_clicked
This signal is fired when the button is clicked in the menu
Last updated