Hooks
-
I followed your example, this is the code in global hook:
function myCustomAction(renderedValue) {
const button = window.document.createElement(“button”)
button.innerHTML = “My Custom Action”
button.setAttribute(“onclick”,alert("My custom action for ${renderedValue}"))
return button
}
This is the code in the Render hook:
((columnName, originalValue, renderedValue, row) => {
return myCustomAction(renderedValue);
})
It works – until you set some search parameter using the looking glass,
most of the time it deos not respond, the Inspect shows this message:
Uncaught SyntaxError: missing ) after argument listThe page I need help with: [log in to see the link]
You must be logged in to reply to this topic.