Follow up to "Datatables defaults on datatable fields in Editor"
Follow up to "Datatables defaults on datatable fields in Editor"
As I marked the question as answered, I will follow up here...
Following this up, seems like layout is where I have my issues..
My default settings are
top: [
'buttons',
'paging',
{ search: { placeholder: 'Sökord' } }
],
topStart: null,
topEnd: null,
bottomStart: 'info',
bottomEnd: 'pageLength'
This gets overridden by
top: hasButtons
? ['search', 'buttons', 'info']
: ['search', 'info'],
bottom: ['paging'],
bottomStart: null,
bottomEnd: null,
topStart: null,
topEnd: null
It does not seem to be possible to override this in the datatable field type options.
I tried with
top: [
'buttons'
]
but to no avail.
KR,
Björn H
Answers
However, adding a "dom" element instead of a "layout" element such as
does override the layout removing "Search" and "Info".
/björn
"dom" is legacy. It is what I am still using. So you got a workaround now. Good to hear!
@allan sounds like there is a bug in "layout"?!