KeyTable key-focus event and column name
KeyTable key-focus event and column name
With the key-focus event, is it possible to determine if a particular column was clicked, via the data name property, as opposed to the index. I am using Objects as my data source.
For example, in the event body, I can do this
if (cell.index().column === 1)
to get the index of the column, but is it possible to do a comparison with the name instead, something like this?
(I realize this is wrong)
if (cell.name === 'Age')
Thank you in advance.
This question has an accepted answers - jump to answer
Answers
There actually isn't at the moment I'm afraid... You can set a name for a column using
columns.name
, but currently the only way that can actually be used is with a column selector. There isn't currently an API method that will let us get / set a column name.I've added to the list to add now though!
Allan
Hi @allan ,
Is this feature available now ?
Regards,
Mazhar
Hi @Mazhar123 ,
No, it's still in the backlog, I'm afraid.
Cheers,
Colin
Ok @colin ,
Thanks for the update.
Regards,
Mazhar