Could aDataSort refer to column like aTargets does?

Could aDataSort refer to column like aTargets does?

sebastienbarresebastienbarre Posts: 24Questions: 1Answers: 0
edited December 2012 in DataTables 1.9
Would be great if aDataSort could use the same type of index as aTargets, i.e.
[quote]
a string - class name will be matched on the TH for the column
0 or a positive integer - column index counting from the left
a negative integer - column index counting from the right
[/quote]
I'm trying to stay away from numerical indexes as possible using class names, and aDataSort is the only piece if my code that has me still using indices.
Using 1.9.2 and TH class name in aDataSort triggers an error.
Thanks
(let me also reiterate how useful datatables has been to me so far)

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Agreed! In 1.10 I'm going to be introducing 'row selectors' and 'column selectors', along the lines of the jQuery CSS type selector, to allow columns and rows to be easily addressed. This will work along the lines you note and also with the sName option. Not something that is currently available in DataTables core, but it is coming :-)

    Allan
This discussion has been closed.