how to setup accent-neutralization plugin from cdn?
how to setup accent-neutralization plugin from cdn?
I have this datatables:
setupPlugin() {
this.$el = $(this.el);
this.$el.DataTable({
"dom": '<"d-flex justify-content-between"fi<"pull-right"l>>t<"d-flex justify-content-between"p<"pull-right"Br>>',
"buttons": ["copy", "excel", "pdf", "print", "colvis"],
"language": languageStrings,
"responsive": true,
"order": [[ 1, "asc" ]],
"columnDefs": this.getRowButtonsDefs()
});
}
how do I set up the accent-neutralization plugin from cdn in this scenario?
Replies
You just need to include the JS file for accent-neutralise, as it just adds a new search type,
Colin
I don´t need to call it on the initialization depcited above?
I don´t know if I´m doing right, but the code bellow doesn´t work:
where is the "accentNeutralize" method implementatin, extracted from the cdn link:
export function accentNeutralize(){
};
The plugin is applied automatically. You don't need to do anything with your Datatables initialization code. This is a generic environment but I loaded the plugin via CDN and updated Tiger Nixon to be in
Zürich
. In the Search input typezurich
to see the plugin working:http://live.datatables.net/wakutona/1/edit
You can load it via CDN, local file or directly in your JS environment.
Kevin