juju scripting documentation
  • Scripting Documentation
  • Creating a script
    • Necessities
      • Example Script
      • Example Script 2
      • Example Script 3
  • Documentation
    • Elements
      • Element Properties
      • Element API
    • Utility Functions
  • Da Hood
    • Signals
    • Functions
Powered by GitBook
On this page
  • Toggle
  • Slider
  • Dropdown
  • Colorpicker
  • Textbox
  • Button
  1. Documentation
  2. Elements

Element Properties

Each type of element has unique properties that you can assign them when creating; and this page lists them all.

Toggle

Argument
Type
Description

default

Boolean

The default state of the toggle

flag

String

The flag assigned to the toggle value

Slider

Argument
Type
Description

min_text

String

The text the slider displays when the slider's value is the lowest possible

max_text

String

The text the slider displays when the slider's value is maxxed out

decimals

Number

The decimal amount used in slider value (1 = first decimal place, and so on)

default

Number

The default value of the slider

prefix

String

The text that shows before the value in the menu

suffix

String

The text that shows after the value in the menu

flag

String

The flag assigned to the slider value

min

Number

The minimum value allowed to set the slider to

max

Number

The maximum value allowed to set the slider to

Dropdown

Argument
Type
Description

default

Table

The default options to be selected

options

Table

The options available in the dropdown

requires_one

Boolean

Whether or not the dropdown selection can be none

multi

Boolean

Whether or not multiple options can be selected

flag

String

The flag assigned to the dropdown selected options

Colorpicker

Argument
Type
Description

default_transparency

Number

The default transparency of the colorpicker

transparency_flag

String

The flag assigned to the transparency value

default_color

Color3

The default color of the colorpicker

color_flag

String

The flag assigned to the color value

Textbox

Argument
Type
Description

default

String

The default value of the textbox

flag

String

The flag assigned to the textbox value

Button

Argument
Type
Description

confirmation

Boolean

Whether or not the button must be clicked twice (confirmed) to activate, like seen with the load and save config buttons

PreviousElementsNextElement API

Last updated 2 months ago