Skip to content

Are all datatables options supported? #43

@serenitus

Description

@serenitus

I have the following:

Template.noticesSearch.notices = function () {
    return {
        id: 'notices-table',
        columns: [{
            title: 'Date',
            data: 'noticedate',
            mRender: function (data, type, row) {
                return moment(row.noticedate).format('DD/MM/YYYY');
            }
        }, {
            title: 'Died on',
            data: 'diedon',
            mRender: function (data, type, row) {
                return moment(row.diedon).format('DD/MM/YYYY');
            }
        },{
            title: 'Family name',
            data: 'familyname'
        },{
            title: 'First names',
            data: 'firstnames'
        },{
            title: 'Estate value',
            data: 'estatevalue',
            mRender: function (data, type, row) {
                return accounting.formatMoney(row.estatevalue, '£ ', 0);;
            }
        }],
        subscription: 'all_notices',
        options: {
            order: [0, 'desc'],
            searching: false
        }
    }
};

Adding the 'searching' option results in an error in the JS console:

Uncaught TypeError: Cannot read property 'value' of undefined Query.mixin.coffee:86include.mapTableState Query.mixin.coffee:86
DataTableComponent.fnServerData DataTables.component.coffee:56
later underscore.js:731

I was led to believe, from the datatable docs, that this option would allow me to suppress the live search/filter box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions