Creates a ribbon item.
dataElement, label, img, title, toolbarGroup, groupedItems (a dataElement or an array of them).
Replaces the inline CSS styles of the item and updates it on screen when it is already in the UI.
CSS property names (camelCase) mapped to their values.
OptionalclassExtra CSS class names added to the item's element.
Unique name of the item; used to find, show, hide or update it later.
OptionaldirectionDirection value kept with the item's data; it does not affect the layout.
OptionaldisabledWhether the item is disabled (rendered but not clickable).
dataElements of the grouped items shown while this ribbon tab is selected.
OptionalhiddenHides the item: true always hides it; an array of screen sizes ('desktop', 'tablet', 'mobile', 'small-mobile')
hides it only on those screen sizes.
OptionalimgIcon of the ribbon tab.
OptionallabelText shown on the ribbon tab, or a translation key.
OptionalstyleInline CSS styles applied to the item's element.
OptionaltitleTooltip text, or a translation key that is resolved in the current language.
OptionaltoolbarToolbar group activated when the ribbon tab is selected; defaults to the item's dataElement.
OptionaltypeItem type (for example 'customButton', 'toolButton', 'divider'); set by each subclass.
Ribbon item: can only be placed in a RibbonGroup; a single groupedItems string becomes an array (an empty array when omitted).