          e.preventDefault();
                    const parent = e.target.closest('tr');
                    runAction(dt.row(parent).data()['name']);
                });
            });
        }

        return {
            init: function () {
                initDatatable();
                handleDatatableActions();
            }
        }
    }();

    $(document).on("i18nshow", function(){
        datatable.init();
    });
</script>
{{- end}}