KeyTable key-focus event and column name

KeyTable key-focus event and column name

msand01msand01 Posts: 54Questions: 24Answers: 1

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

  • allanallan Posts: 48,301Questions: 1Answers: 6,970 Site admin
    Answer ✓

    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

Sign In or Register to comment.