Skip to content Skip to sidebar Skip to footer

Uncaught Typeerror: This.opena Is Not A Function At Htmlbuttonelement.onclick

I'm trying to add button on column definition using ag grid, but I end up getting this error always. I tried using different ways to implement button but never found a solution. Ge

Solution 1:

openA is being executed before it receives the event and the return value of the function is undefined. Also openA expects an event object, but you are passing params value.

if you want your event handler to work you need to do somthing like the following i.e. openA must return a function to be able to receive the event object:

// 
openA = (value) => {
  returnfunction(event) {
    console.log(id);
  };
};

Post a Comment for "Uncaught Typeerror: This.opena Is Not A Function At Htmlbuttonelement.onclick"