DT Editor defaults
DT Editor defaults
Description of problem:
I want to use autocomplete: "off" on all my "Create" forms. I've tried various permutations of this:
$.extend( true, $.fn.dataTable.Editor.defaults, {
create: {
autocomplete: "off"
},
formOptions: {
main: {
onBackground: 'none' // Do not close form on click outside.
}
}
} )
Is it even possible to apply this attribute globally?
This question has an accepted answers - jump to answer
Answers
See if this thread helps.
Kevin
Hi Kevin. I had tried the "attr" option, with no success, and now using this exact code from the thread you gave me
it's not working. No discernible errors, and I can't think of anything which might be interfering.
Weird.
I put your code snippet in this example and it works.
https://live.datatables.net/guwafemu/404/edit
Make sure it executes before you initialize the Editor.
Kevin
Neither of us noticed that I had
where I needed
All okay now. I appreciate your help.
That's a good point - I should document where the defaults are. Thanks!
Allan