The LPVOID obj added to the parent element.
const ribbonBar = await app.getRibbonBar();
const ribbonCategory = await ribbonBar.addCategory('categoryName', 'categoryTitle');
const ribbonPanel = await ribbonCategory.addPanel('panelName', 'panelTitle', btnBitmap);
const ribbonElement = await ribbonPanel.addElement('elementName', 'elementTitle', btnBitmap);
const subribbonElement = await btnElement.addSubItem({
elementType: 0,
name: 'SubItem1',
title: 'SubItem1',
pos: -1,
isOnTop: true,
isChangeFun: false,
isChangeImage: false
});
Get the sub element by name.
The name of the sub element.
The sub element object.
OptionaloptionsSet execute proc callback , which is called when the element is clicked.
The execute proc callback function.
Set the tooltip information.
The tooltip information.
Add a sub item to the parent element.