Add a specified element to the panel.
const parentWnd = await LPVOID.create();
const ribbonBar = await app.getRibbonBar(parentWnd);
const ribbonCategory = await ribbonBar.addCategory('categoryName', 'categoryTitle');
const ribbonPanel = await ribbonCategory.addPanel('panelName', 'panelTitle', btnBitmap);
const ribbonElement = await ribbonPanel.addElement({
elementType: FR_Ribbon_Element_Type.FR_RIBBON_BUTTON,
name: 'TestDropButton',
title: 'TestDropButton',
pos: -1
});
Copy the element to the panel.
RibbonElementType - The RibbonElementType object to copy to the panel.
Returns a Promise that resolves to a LPVOIDType object.
Get the element object by index.
The index of the element. This value can be iterated through from getElementCount.
Get the specified element object.
Get the RibbonElement element by the name of the element.
The name of the element.
Get the specified element object.
Get the number of elements in the panel.
The number of elements in the panel.
Get the name of the panel.
The name of the panel.
Add a RibbonElement element to the current panel.