Hello,
I am using Datatable.js plugin to display my database datas.
I would like to include a dropdown (data-kt-menu-trigger) in the rendering of my table (Ajax) to call some actions instead of displaying buttons... but the dropdown refuses to open.
How can I open my dropdowns after an "append ajax"?
I use Jquery, javascript and PHP (traditional).
Thanks
Hi,
As explained in the documentation you will need to init the newly populated KTMenu instances:
// Re-init functions on every table re-draw -- more info: https://datatables.net/reference/event/draw
dt.on("draw", function () {
KTMenu.createInstances();
});