DataTables 2 status update

DataTables 2 status update

allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

Hi all,

For anyone following along with DataTable 2 development, you'll have noticed that I had initially said it would be released by the end of 2023, then January 2024. Unfortunately, it still isn't quite ready - DataTables 2 itself is ready to go, but there is documentation and packages to update as well as a few final tweaks for the extensions. I'm hopeful it will be ready for release soon, but I'll not release it until it is actually ready (no sense in releasing something that isn't ready to meet an arbitrary deadline!).

If you would like to try it out just now, the nightly builds contain DataTables 2 and all the latest updated for the extensions (some of which are also receiving major updates).

It will be worth the wait :)
Allan

Replies

  • sgustafssonsgustafsson Posts: 32Questions: 6Answers: 0

    I get a 404 when trying to get the css fomr the nightly build.

    https://nightly.datatables.net/css/dataTables.min.css

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    https://nightly.datatables.net/css/dataTables.dataTables.min.css is the correct url. Thanks for pointing that out!

    Allan

  • sgustafssonsgustafsson Posts: 32Questions: 6Answers: 0

    I used (=replaced current DT libs with) the nightly builds in one of my projects, and noticed issues when using

     responsive: true
    
    ... 
    
    dataTables.responsive.min.js:4  Uncaught TypeError: Cannot read properties of null (reading 'cloneNode')
        at _Api.<anonymous> (dataTables.responsive.min.js:4:9436)
        at _Api.<anonymous> (jquery.dataTables.js:9429:9)
        at _Api.iterator (jquery.dataTables.js:6628:17)
        at _Api.<anonymous> (jquery.dataTables.js:9422:16)
        at _Api.every (jquery.dataTables.js:6718:17)
        at a._resizeAuto (dataTables.responsive.min.js:4:9401)
        at a._constructor (dataTables.responsive.min.js:4:1796)
        at new a (dataTables.responsive.min.js:4:911)
        at HTMLDocument.<anonymous> (dataTables.responsive.min.js:4:15441)
        at HTMLDocument.dispatch (jquery-3.7.1.min.js:2:40035)
    

    as well when using SearchBuilder .

    { extend: 'searchBuilder', text : 'Search Builder', className: "btn-sm" }
    ...
    
    dataTables.searchBuilder.min.js:4  Uncaught TypeError: this.s.dt.columns(...).type is not a function
        at n._setUp (dataTables.searchBuilder.min.js:4:58449)
        at new n (dataTables.searchBuilder.min.js:4:5510)
        at _Api.init (dataTables.searchBuilder.min.js:4:66129)
        at _._expandButton (dataTables.buttons.min.js:4:6119)
        at _.add (dataTables.buttons.min.js:4:1802)
        at _._constructor (dataTables.buttons.min.js:4:4366)
        at new _ (dataTables.buttons.min.js:4:1192)
        at HTMLDocument.<anonymous> (dataTables.buttons.min.js:4:25900)
        at HTMLDocument.dispatch (jquery-3.7.1.min.js:2:40035)
        at v.handle (jquery-3.7.1.min.js:2:38006)
    

    other than that everything worked for me.
    I guess those are the "few final tweaks for the extensions" you were talking about.

    Is it worth trying to create standalone test cases for those?

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Looks like my nightly builds are having some issues - sorry. I've cleared the queue now, and hopefully if you force reload your example it should work now. If it doesn't, yes please, test cases would be excellent.

    Allan

  • sgustafssonsgustafsson Posts: 32Questions: 6Answers: 0
    edited February 5

    The refresh helped with the SearchBuilder issue, that is gone.
    But when switching to

    responsive : true
    
    

    SearchPanes and table do not load.

    See https://live.datatables.net/xazuxixo/1/edit

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Does it et this far for you:

    Or does it fail with an error? That's what I get when loading the link above.

    Allan

  • sgustafssonsgustafsson Posts: 32Questions: 6Answers: 0

    Yes, that's what I get as well. But when I switch to responsive: true

    SP and table dont load.

    Sorry for providing a working test case, with instructions on how to make it not work, probably confusing ;-)

  • sgustafssonsgustafsson Posts: 32Questions: 6Answers: 0

    Plus switching to BS dark mode via

    <html lang="en" data-bs-theme="dark">
    

    doesn't completly switch SP and table to dark mode.

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Thank you! That was a proper bug - just committed a fix and it loads now.

    I'll look at the dark mode error.

    Allan

Sign In or Register to comment.