Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82694

Can formOptions be updated through the API?

$
0
0

I was wanting to "Escape" out of an input without escaping out of Editor in total
(Like this post for Select2: https://datatables.net/forums/discussion/comment/137347/#Comment_137347)

My thought at the moment is to set onEsc based on the state of the input (i.e., input has focus or not):
(WARNING: SYNTAX MAY BE HORRIBLY OFF, but I think you'll get the gist)

.on("input_onFocus", function () {
    editor.formOpts.main.onEsc('none'`)
})
.on("input_onBlur", function () {
    editor.formOpts.main.onEsc('blur'`)
})

However it doesn't appear formOptions can be changed.


Viewing all articles
Browse latest Browse all 82694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>