Appearance
customActionsBottom
Add custom actions to the form actions shown at the bottom left corner.
Parameters
| Parameter | Type | Description |
|---|---|---|
| row | object | Object containing the original values of all columns as shown below. |
| mode | enum | INSERT | UPDATE | VIEW |
Structure parameter row
js
row: {
column_1: " - value column 1 - ",
column_2: " - value column 2 - ",
column_n: " - value column n - ",
}Return Value
| Type | Description |
|---|---|
| string | An HTML string, typically created using a template literal. |
| HTMLElement | A DOM element node created with vanilla JavaScript. |
| jQuery | A jQuery object wrapping the new element. |
✨ Example: Adding a custom button using a template literal
js
((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>`
})