lumapps / lumX

The first responsive front-end framework based on Angular & Google Material Design specifications

Home Page:https://ui.lumapps.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datatable filter

thesunbg opened this issue · comments

How can to filter a property of datatable:

vm.dataTableThead = [
            {
                name: 'createdDate', //want to filter date to dd/mm/yyyy instead of default text
                label: 'Created date'
            }
            ];

vm.dataBody = [...];

You could use the format property as per the documentation:

{
    format: function formatCreatedDate(row) {
        // Manipulate your value in here however you want it
        return row.value + 'Hello';
    },
    label: 'Created date'
    name: 'createdDate',
}

Hope this helps.