OptionalcategoryOptionalconditionOptionalpluginThe ID of the plugin that created the object
Optionalside_Provide a menu that belongs to the action, and gets displayed as a small arrow next to it in toolbars.
Optionaltool_Provide a window with additional configutation related to the action
OptionalvariationsStatic OptionalconstructingAdds 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
Adds 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.
Gets a copy of the elements HTML node that is not yet in use.
Adds an event listener to the item
The event type to listen for
Adds a single-use event listener to the item
The event type to listen for
Removes an event listener from the item
Change the icon of the action
Change the name of the action
Appends the bar item to a HTML element
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: Event
Actions can be triggered to run something, they can be added to menus, toolbars, assigned a keybinding, or run via Action Control