Metadata for columns

Metadata for columns

peterkronenbergpeterkronenberg Posts: 112Questions: 0Answers: 0
edited October 2010 in General
I want to be able to store customized metadata for column headers, using JQuery's data() method. Will aoColumns let me define something like this?
Also, is there a render() method that only applies to the column headers? My column names are in this format (TWO_WORDS). I want to display them pretty, e.g., Two Words. But I need to save the original format.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    At the moment - no not really. If you want to do any meta data stuff, then you'll need to do it manually, or assign it to DataTables' internal components in such a way that DataTables doesn't know about it (easy enough using the aoData array).

    Regarding the header - DataTables does very little to the table headers, so there are no manipulation functions for them. Rather, what is expected is that if you want to manipulate the headers, just do it using standard DOM / jQuery methods.

    Allan
This discussion has been closed.