import DataTable from "datatables.net"; require('datatables.net-bs4'); require('datatables.net-buttons'); require('datatables.net-buttons-bs4'); require('datatables.net-select'); export default class extends ApplicationController { static targets = ["table"] initialize() { const options = { keys: !0, select: { style: "multi" }, language: { paginate: { previous: "<i class='fas fa-angle-left'>", next: "<i class='fas fa-angle-right'>" } }, }; // Init the datatable const table = $('#datatable-basic').on( 'init.dt', function () { $('div.dataTables_length select').removeClass('custom-select custom-select-sm'); }).DataTable(options); } }