📜  在 ag-grid 中显示上下文菜单 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.983000             🧑  作者: Mango

代码示例1
(params: CellClickedEvent): void => {

  const {rowIndex, node, column, event, value} = params;

  const cell = params.api.rowRenderer.rowCompsByIndex[rowIndex].getRenderedCellForColumn(column);

  cell.beans.contextMenuFactory.showMenu(node, column, value, event);
};