How to access column name
How to access column name
in DataTables
Hi,
I am traying to access column name for filtering purpose. If there is more columns filtered it is uncomfortable to check what is column index.
I was trying to access by name (e.g. 'data.status') by with no luck. I would be grateful for help.
```columns:[
``` { data: "status", searchable: true }, ...
and searching:
```xTable.column(**data.status**).search(state, true, false).draw();
Thanks in advance.
This discussion has been closed.
Answers
The
column-selectordocs list all of the options available. There isn't one specific forcolumns.databut if you want to definecolumns.nameyou can use {string}:name.Kevin