Follow up to "Datatables defaults on datatable fields in Editor"

Follow up to "Datatables defaults on datatable fields in Editor"

BjornHaBjornHa Posts: 61Questions: 11Answers: 0

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

  • BjornHaBjornHa Posts: 61Questions: 11Answers: 0
    edited November 4

    However, adding a "dom" element instead of a "layout" element such as

    dom: 'Brtp'
    

    does override the layout removing "Search" and "Info".
    /björn

Sign In or Register to comment.