Using array of objects with layout option does not appear to work.

Using array of objects with layout option does not appear to work.

m0nst3rm0nst3r Posts: 4Questions: 1Answers: 0

Link to test case: https://live.datatables.net/reriyupe/3/edit
Debugger code (debug.datatables.net):
The debugger code produced an error "Cannot read properties of undefined (reading 'sVersion') DT_Debug.js?rand-1708278425857:512
Error messages shown:
DataTables warning: table id =xxx - Unknown feature undefined
Description of problem:
When creating an array of objects under topStart the error occurs. The documentation at https://datatables.net/reference/option/layout applies this should work (under object it encourages you to use an array of objects). An array of strings seems to work fine, but doesn't allow for easy customization.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Thank you for the test case. I'd agree, that should indeed work. I will look into this (if not tomorrow, then Tuesday) and get back to you.

    Allan

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Fixed committed and it will be in 2.0.1 which I'll drop tomorrow or Wednesday.

    Allan

  • m0nst3rm0nst3r Posts: 4Questions: 1Answers: 0

    Awesome. Amazingly quick. Very appreciated!

  • m0nst3rm0nst3r Posts: 4Questions: 1Answers: 0

    @allan Not pushing you, but any ETA on when 2.0.1 will drop? I don't see it on NPM yet.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    A few other things have popped up that I want to get in as well. Hoping that I'm working on the last one at this very moment. It should be soon :)

    Allan

Sign In or Register to comment.