I want to add a custom column to a table which contains a button. I know I can use Master-Detail to achieve this but I want to create my own onclick event and not the trigger that's built-in to master-detail.
To add a column that contains a button, you have two options:
1. Create a new URL link column, and in its settings choose "Show link as a button"
2. Create a new string-type column, and add a class in its settings. Then, define the class in wpDataTables settings/Custom JS and CSS, to have all content in the column appear as buttons.
Please note that this is considered custom work, and is not included in the provided support for the plugin.
I want to add a custom column to a table which contains a button. I know I can use Master-Detail to achieve this but I want to create my own onclick event and not the trigger that's built-in to master-detail.
How can I achieve this?
Hello Steve
To add a column that contains a button, you have two options:
1. Create a new URL link column, and in its settings choose "Show link as a button"
2. Create a new string-type column, and add a class in its settings. Then, define the class in wpDataTables settings/Custom JS and CSS, to have all content in the column appear as buttons.
Please note that this is considered custom work, and is not included in the provided support for the plugin.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks for your reply.
Got it!
I'll run with option 2.
Thanks again.
You're welcome Steve
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables