OptionalcategoryOptionalchildrenOptionalcolorOptionaldefault_OptionaliconOptionallinked_ID of a setting that the toggle is linked to
OptionalonOptionalpluginThe plugin that this was added by
OptionalsearchableOptionalside_Provide a menu that belongs to the action, and gets displayed as a small arrow next to it in toolbars.
Optionalsub_Optionaltool_Provide a window with additional configutation related to the action
OptionaluniqueOptionalvariationsOptionalwork_StaticconstructingAdds a label to the HTML element of the bar item
Optionalin_bar: booleanSet to true to generate an in-bar label, as opposed to a regular on-hover label
Optionalaction: anyProvide the action to generate the label. This defaults to self and is only needed in special cases
Gets a copy of the elements HTML node that is not yet in use.
Optionalindex: numberChange the icon of the action
Change the name of the action
Appends the bar item to a HTML element
Trigger to run or select the action. This is the equivalent of clicking or using a keybind to trigger it. Also checks if the condition is met.
Optionalevent: EventUpdates the state of the toggle in the UI
A toggle is a type of action that can be on or off. The state is not persistent between restarts by default.