searchPanes.dataLength not working in SearchPanes 2.3

searchPanes.dataLength not working in SearchPanes 2.3

nmhoustonnmhouston Posts: 2Questions: 1Answers: 0

Link to test case: https://datatables.net/extensions/searchpanes/examples/advanced/longData.html
Description of problem:
Does searchPanes.dataLength still work in SearchPanes 2.3 ? The test case link above is to an example purporting to show the default truncation of a long line of data with datatables 2.0.0 and searchPanes 2.3, but if you look at the demo, it is not actually truncating that line of data.

There's an older example also on the website at https://datatables.net/extensions/searchpanes/examples/advanced/dataLength that does indeed show searchPanes.dataLength functioning, but it is loading searchPanes 1.1.1.

I'd like to be able to truncate the occasional long line of data, but it seems that searchPanes.dataLength is not working any longer.
Thanks for any suggestions --

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,152Questions: 1Answers: 2,587
    Answer ✓

    Yep, it looks like it's broken, thanks for letting us know. The dataLength option itself is no longer needed as SearchPanes should be doing itself (see this commit).

    I've raised it internally (DD-2921 for my reference) and we'll report back here when there's an update.

    In the meantime, as a workaround you could use orthogonal data, something like this example here.

    Colin

  • nmhoustonnmhouston Posts: 2Questions: 1Answers: 0

    Thank you for the workaround example, that's exactly what I needed!

Sign In or Register to comment.