Hi,
How to add icon. Please have a look at the attachment and suggest step to add that
Here is code
{
type: 'button',
ref: 'viewButton',
html: <Button buttonVariant="secondary-white">{intl.formatMessage({ id: 'View' })}</Button>,
menuIcon: null,
style: 'margin-left:auto',
menu: {
items: [
{
ref: 'criticalPathsButton',
text: intl.formatMessage({ id: 'CriticalPath' }),
checked: false,
toggleable: true,
onToggle(props: any) {
const {
menu: {
owner: {
parent: { parent: gantt },
},
},
} = props;
gantt.features.criticalPaths.disabled = !props.checked;
const data = {
enableCriticalPath: props.checked,
};
StateHelper.saveEnableCriticalPath(data);
},
},
],
},
},
Thanks!!