How to access column name
How to access column name
ketna
Posts: 8Questions: 4Answers: 0
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.
Answers
The
column-selector
docs list all of the options available. There isn't one specific forcolumns.data
but if you want to definecolumns.name
you can use {string}:name.Kevin