Can I get a field settings??
Can I get a field settings??
Lucho_1312
Posts: 30Questions: 9Answers: 0
Is it possible to get a fields settings?
I mean something like:
var settings = editor.field('name').settings();
Returning this:
{
label: 'Full name',
data: 'name',
className: 'class-for-name-input'
}
Thanks!
Luciano
This question has accepted answers - jump to:
This discussion has been closed.
Answers
This should be a good start.
http://editor.datatables.net/reference/api/%24.fn.dataTable.Editor.pairs()
The public API to manipulate the field information is available here. There is no method to get a fields' settings object.
Allan
Finally I've used this:
editor.field('name').s.opts
It's not the best, but It worked. Thank you all!