Use the customActionsBottom hook to add custom actions to the form actions shown at the bottom left corner.
Parameters #
- row: object containing the original values of all columns
- mode: 0 = INSERT | 1 = UPDATE | 2 = VIEW
row: {
column_1: " - value column 1 - ",
column_2: " - value column 2 - ",
column_n: " - value column n - ",
}
Return value #
Template literal, DOM element or jQuery object
Add custom actions #
((row, mode) => {
wpda.log.info("message from customActionsBottom", row, mode)
return `<button onclick="wpda.alert('Alert', '<div><strong>Button clicked!</strong></div>')">
Custom Action
</button>`
})