Hi Team,
Is it possible to open up menu items when we click on an icon in the column. I have an action column with an icon on it. When I click on icon I want the cellMenuItems to show up. Is it possible?
When I right click on the column I can see the menu items, but I want it to open on an icon click.
columns={[
{
text: "User",
showImage: false,
width: 130,
field: "name",
editor: false
},
{
type : 'action',
text : 'Actions',
width : 80,
align : 'center',
cellMenuItems: [
{ text: 'Menu 1',
icon: 'b-fa b-fa-pen',
onItem : async({ record }) => { console.log(record)}
},
{
text: 'Menu 2',
icon: 'fa fa-beer',
onItem : async({ record }) => { console.log(record)}
}
],
actions : [{
cls : 'b-fa b-fa-fw b-fa-plus',
tooltip : 'Add task',
onClick : async({ record }) => {
alert('click here')
}
}],
}
]}
Thanks and Regards