we are using react.js DocumentEditorContainerComponent.How can we add CustomToolbarItemModel as dropdownlist
like this its not working
let drop1: CustomToolbarItemModel = new DropDownButton({
items: [
{ text: 'key1', id: '1' },
{ text: 'key2', id: '2' },
],
});
let toolbarItems: (CustomToolbarItemModel | ToolbarItem)[] = [
drop1,
'New',
'Open',
'Separator',
'FormFields',
'UpdateFields',
];
return (
<>
<DocumentEditorContainerComponent
ref={docEditorRef}
id="container"
enableToolbar={true}
locale="tr"
height="600px"
toolbarItems={toolbarItems}
/>
);
Attachment: index_307048de.7z