============================UPDATED 1.1============================
I'm new to Magento 2.3
, I'm trying to apply jQuery DataTable(DONE), after than, I want to add it's Button Extension, for that i need to add two more js
, i did, now my Js file in included but can't see print button, Here is my code:
/EC/Downloads/view/adminhtml/requirejs-config.js
var config = {
map: {
'*': {
dataTables: 'EC_Downloads/js/datatables.min'
}
}
};
/EC/Downloads/view/adminhtml/templates/test.phtml
<script>
require(['jquery', 'jquery/ui','dataTables'], function($){
$(document).ready(function($){
$('#example').DataTable({
dom: 'Bfrtip',
buttons: [
'print'
]
});
});
});
</script>
Initializing other two js button.js
, button_print.js
like this:
<script type="text/x-magento-init">
{
"*": {
"EC_Downloads/js/buttons":{},
"EC_Downloads/js/buttons_print":{}
}
}
</script>
sudo rm -rf var/ pub/static/adminhtml generated/
sudo php bin/magento setup:di:compile
,sudo php bin/magento setup:static-content:deploy -f
&Clean
Flush
....