1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to change innerHTML with ag-grid processRowPostCreate?

Discussão em 'Angular' iniciado por Danaley, Outubro 14, 2024.

  1. Danaley

    Danaley Guest

    I read that this gridoption callback allows users to process the rows, which is to add attributes.

    I like to add my own angular attributes [myCustomAttribute] = "XXXX" into the ag-grid rows but my code dont seems to work.

    processRowPostCreate: (params) => {
    if (params) {
    const eRow = params.eRow;
    console.dir(eRow); // no error
    console.log(eRow.innerHTML); // innerHTML undefined
    }
    }


    It complains that innerHTML is undefined and I couldnt access it. But console.dir(eRow) did show there is an innerHTML in that object.

    How can we change the innerHTML with ag-grid 'processRowPostCreate'?

    Continue reading...

Compartilhe esta Página