Hello team, Good Afternoon,
Currently, we are working on BryntumGantt, inside this Gantt, we by default have Grid features. We are trying to implement cellMenu inside this Grid. But somehow we are not able to achieve this. We have access of ganttRef, from this how will reach to cellMenu feature.
**Single column code (Please read the comments)
{
type: 'action',
exportable: false,
cls: 'grid-action-field',
text: '',
actions: [
{
cls: 'b-fa b-fa-ellipsis-v grid-updated-add task-menu-button',
onClick: (data: any) => {
// here we want to show cellMenu
},
};
],
},
^^ Above code is our code
**From here we took reference -> https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellMenu
**Reference code from documentation::
{
type : 'action',
actions : [
{
cls : 'b-icon b-fa-ellipsis-h',
onClick({ record, target, column, grid }) {
grid.features.cellMenu.showMenuFor({ record, column }, { targetElement : target });
//^^ We dont have access of this "grid" inside BryntumGantt's grid
}
}
]
}
^^ This code we found on documentation