what is aTargets ?

what is aTargets ?

mlotfimlotfi Posts: 60Questions: 5Answers: 0
edited January 2014 in General
Hi,
I am new here, but still does not understand what aTargets is .
Thanks.

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Read up on aoColumnDefs:
    http://datatables.net/usage/columns
  • rvgrahamrvgraham Posts: 28Questions: 5Answers: 0
    Basically tells datatables which columns an attribute will be applied to. Doesn't apply unless you are using aoColumnDefs. So if you say 'bVisible': false, you can then add 'aTargets': [2, 5, 6] and it will only be applied to those columns.

    Personally I like the linear look and readability of just using aoColumns, as each column is defined vertically, in order, each with its own attributes.

    (Syntax not checked, do look at the documentation.)
This discussion has been closed.