The sub item to be added.
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.
Set the ribbon element to be disabled or enabled.
Whether the compute function is enabled.
Set 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.