Set column widths after instantiation with API?

Set column widths after instantiation with API?

wpswps Posts: 15Questions: 0Answers: 0
edited August 2009 in General
Is it possible to set the column widths after instantiation? I don't see an API call for it.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi wps,

    There isn't an API for this - however you can do it simply by using DOM manipulation. Just alter the ".style.width" for the columns as you require using normal DOM methods. DataTables won't mind about this as it only sets the column width once - at initialisation time.

    Regards,
    Allan
This discussion has been closed.