I'm new to using wpDataTables. In most frameworks I have used there is a change event hook for table row selections. Could you please provide me with guidance on how this is achieved via wpDataTables?
You can take a look at our hooks and find the one you need, but I believe you could use wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId )
This action is executed after editing action is applied.
$formdata is the array of keys and values for editing.
$rowId is the ID field of the row in MySQL table that was edited.
$tableId is the table identifier from the MySQL plugin table (wp_wpdatatables).
The hook that I'm looking for wouldn't be when a row is edited. I'm looking for a hook that would fire when a user clicks on a row in the table whereby the row is selected.
There are no hooks for catching a selected row, I'm afraid, but you can use $rowId from that hook, and in combination with some JS, you could probably do what you want to do.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
If I had an example of what you're looking for to achieve, I'd gladly share it with you.
Hello,
I'm new to using wpDataTables. In most frameworks I have used there is a change event hook for table row selections. Could you please provide me with guidance on how this is achieved via wpDataTables?
Thank you,
~Adam
Hello Adam
Thank you for your purchase.
You can take a look at our hooks and find the one you need, but I believe you could use wpdatatables_after_frontent_edit_row( $formdata, $rowId, $tableId )
This action is executed after editing action is applied.
$formdata is the array of keys and values for editing.
$rowId is the ID field of the row in MySQL table that was edited.
$tableId is the table identifier from the MySQL plugin table (wp_wpdatatables).
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
Thank you for your getting back to my Aleksandar.
The hook that I'm looking for wouldn't be when a row is edited. I'm looking for a hook that would fire when a user clicks on a row in the table whereby the row is selected.
Is there a hook for this?
~Adam
Hi again Adam
There are no hooks for catching a selected row, I'm afraid, but you can use $rowId from that hook, and in combination with some JS, you could probably do what you want to do.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
If I had an example of what you're looking for to achieve, I'd gladly share it with you.
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 Aleksandar.
I was able to access the selection of the row via javascript.
I'm glad to hear that, Adam
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