Creates a new instance of RibbonGroup.
Parameters:
Name |
Type |
Description |
properties |
ContainerProperties
|
An object that contains the properties of the ribbon group.
Properties
Name |
Type |
Argument |
Description |
items |
Array.<UI.Components.RibbonItem>
|
|
The items in the ribbon group. Non-ribbon items will be ignored. |
headerDirection |
'column'
|
'row'
|
<optional>
|
A string describing the direction of the header in which the ribbon will be placed. |
placement |
'top'
|
'bottom'
|
'left'
|
'right'
|
<optional>
|
A string describing the placement of the header in which the ribbon will be placed. |
|
Example
const ribbonGroup = new instance.UI.Components.RibbonGroup({
dataElement: 'default-ribbon-group',
grow: 2,
justifyContent: 'start',
title: 'Default Ribbon Group',
type: 'ribbonGroup',
items: [
// these items would need to be defined in your code
viewRibbonItem,
annotateRibbonItem,
shapesRibbomItem,
insertRibbonItem,
redactionRibbonItem,
measureRibbonItem,
editRibbonItem,
contentEditRibbonItem,
fillAndSignRibbonItem,
formsRibbonItem,
]
});