Javascript 双击AgId单元格(粘贴)时是否有事件

Javascript 双击AgId单元格(粘贴)时是否有事件,javascript,ag-grid,ag-grid-angular,Javascript,Ag Grid,Ag Grid Angular,双击ag网格单元以粘贴(ctrl+V)某些数据时, 我想要该事件(粘贴),但无法获取单元格的事件 我试着用剪贴板上的ProcessCellFromClipboard处理那个特定的单元格,但也没有触发 columnDefs: [ { field: 'name', headerName: 'name', width: 175, includeInSearch: true, suppressSorting: true,

双击ag网格单元以粘贴(ctrl+V)某些数据时, 我想要该事件(粘贴),但无法获取单元格的事件

我试着用剪贴板上的ProcessCellFromClipboard处理那个特定的单元格,但也没有触发

  columnDefs: [
   {
      field: 'name',
      headerName: 'name',
      width: 175,
      includeInSearch: true,
      suppressSorting: true,
      suppressFilter: true,
      suppressMenu: true,
      onProcessCellFromClipboard : (params) = > {
         //expecting this event to be fired when we do ctrl+v but not working
      }
    }
  ]

在angular中,您可以使用所有预定义的JavaScript事件来处理用户输入

这里有两个函数一直在解决我的问题:oninput和onchange

如果您想在angular中使用它们,您可以在模板中将其作为:

<component (input)='youFunction()' (change)='yourSecondFunction()'></component>
并在脚本中添加对函数的引用

function  YourOnCellValueChanged (params) {
  console.log('The column has been changed '+ params);
}

function thePasteStart(event){
    console.log("Paste started "+ event.value)

}
function thePasteEnd(event){
    console.log("Paste Ended "+ event.value)

}

在angular中,您可以使用所有预定义的JavaScript事件来处理用户输入

这里有两个函数一直在解决我的问题:oninput和onchange

如果您想在angular中使用它们,您可以在模板中将其作为:

<component (input)='youFunction()' (change)='yourSecondFunction()'></component>
并在脚本中添加对函数的引用

function  YourOnCellValueChanged (params) {
  console.log('The column has been changed '+ params);
}

function thePasteStart(event){
    console.log("Paste started "+ event.value)

}
function thePasteEnd(event){
    console.log("Paste Ended "+ event.value)

}

谢谢,但是我想捕捉Ctrl+v剪贴板事件,我现在不能使用任何ag grid事件。我不认为使用ag grid会触发它。谢谢,但是我想捕获Ctrl+v剪贴板事件,我现在不能使用任何ag grid事件。我不认为使用ag grid会触发它