How to add selectall using dropdownadapter on select2 v4
问题 I am not using require and trying to implement this. $(".js-example-data-ajax").select2({ ajax: { //url: "https://api.github.com/search/repositories", url: "<?=BASE_URL ?>api/corporate-performance-dashboard/get-customers", dataType: 'json', type : 'POST', delay: 250, data: function (params) { return { q: params.term, // search term page: params.page }; }, processResults: function (data, params) { // parse the results into the format expected by Select2 // since we are using custom formatting