Table Title Use

Table Title Use

Kode3Kode3 Posts: 5Questions: 0Answers: 0
edited December 2010 in General
I have 8 tables on the same page and initialize them all at once using their class attribute. I also use the jQueryUI setting to make them look good.

I want to somehow put what I have in the "title" attribute of each of the tables into the toolbar header that jQueryUI/DataTables makes on the fly.

It seems like this should be easy but I'm striking out here. Anyone have a good idea how to handle this?

Thanks in advance!

Replies

  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin
    I'd suggest using fnInitComplete ( http://datatables.net/usage/callbacks#fnInitComplete ) to read the title attribute from the table (this.fnSettings().nTable.getAttribute('title') - in fnInitComplete) and then stick it into the DOM element that you want. You could even use something like this: http://datatables.net/examples/advanced_init/dom_toolbar.html

    Allan
This discussion has been closed.