Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

428
Visualizações
Ag-grid onPasteStart event access to paste data for async process

Am trying to access user paste data when onPasteStart/onPasteEnd event fires. Running Angular 12. The resulting javascript object includes all ag-grid methods and I cant find the resulting data that is pasted. I cant print the string of the object and ctrl-f because it gives an error with the object being circular. https://www.ag-grid.com/angular-data-grid/clipboard/#clipboard-events

My intention is to take the paste and use resulting data to make a api request and then use the response to modify the paste. Tried using ag-grid processDataFromClipboard but came across errors as I imagine it doesnt support async functions.

Here is an angular plnkr example. All I need is to consol.log params.value with the pasted data and starting row of the paste. https://plnkr.co/edit/q6cZQbX7LdHzozy9

    console.log('Callback onPasteStart:', params);
  }

  onPasteEnd(params) {
    console.log('Callback onPasteEnd:', params);
  }

It sounds simple so I feel like I must be missing an obvious solution

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda