add extra TableTools button after initialization?

add extra TableTools button after initialization?

petripetri Posts: 2Questions: 1Answers: 0

Is it possible to add buttons after the DataTable and TableTools have been initialized and rendered in DOM? For example from another Javascript file loaded after the one doing the initialization?

I've tried accessing the tabletools and adding extra button using TableTools.fnGetInstance( 'datatable' ).s.buttonSet.push(extra);
- where 'extra' is a regular button definition object. Should this work? I cannot however this way get the tabletool to re-render so the extra button would show.

Any ideas?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,903Questions: 1Answers: 10,146 Site admin
    Answer ✓

    Currently no, sorry, this is not possible. I am going to be starting a rewrite of TableTools soon which will provide this ability.

    Allan

This discussion has been closed.