Elements
Here is an explanation of menu elements and their respected properties.
Creating a Tab
To start adding your own elements, you must create a tab using juju.create_tab; shown below.
name
String
The tab's name, providing no name will default it to the addon's file name
Creating Sections
To create a section, you must create a section using juju.create_section; this will error if a tab is not created beforehand.
name
String
The section's name
side
Number
The side the section will be placed on in the tab, 1 = left, 2 = light
size
Number
The vertical size of the section (0.1-1)
offset
Number
The vertical offset of the section (0-0.9)
Creating Elements
To create a section, you must create a section using juju.create_element.
When using juju.create_element there is an argument labeled types. Below is a fully working addon example of how to properly set up this argument.
Last updated