aanFeatures undefined

aanFeatures undefined

MatthewreedMatthewreed Posts: 9Questions: 1Answers: 0

_that.fnSettings().aanFeatures.f is undefined???
I don't understand how to get aanFeatures content.

Answers

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

    Please can you link to a test case showing the issue, per the forum rules. I don't know what version of DataTables you are using, if you are using any extensions or the configuration of the table.

    Allan

  • MatthewreedMatthewreed Posts: 9Questions: 1Answers: 0
    edited May 2015

    Please forgive me.
    I'm using datatables 1.10.7 and trying to update fnSetFilteringDelay plugin.

    Consider row 14:
    anControl = $( 'input', _that.fnSettings().aanFeatures.f );

    anControl is an array of any input in the page because
    _that.fnSettings().aanFeatures.f
    is undefined whereas aanFeatures is an array...
    I tried every possible combination I thought of to extract filter info from such array...

    _that.fnSettings().aanFeatures[0].f

    _that.fnSettings().aanFeatures.f [0]

    _that.fnSettings().aanFeatures['f']

    etc etc

    but I don't manage to get it; I'm probably too little skilled in javascript but I don't find a way to get that data.

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

    Thanks for the extra information. I'd suggest using the searchDelay option instead of that plug-in which doesn't look like it has been updated for 1.10 (because the feature is built into DataTables now!).

    I'll add a note to the plug-ins documentation stating this.

    Allan

  • MatthewreedMatthewreed Posts: 9Questions: 1Answers: 0
    edited May 2015

    If I don't mistake the builtin feature is a throttling, not a debouncing, which the plugin does and I'm trying to apply

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

    You are correct - apologies for my misunderstanding. They are similar but not the same. It sounds like the plug-in needs to be updated in that case. Thanks for letting me know about this, I'll try to take a look next week.

    Allan

  • MatthewreedMatthewreed Posts: 9Questions: 1Answers: 0

    Well, thank you.
    I'm really curious to see how aanFeaturs data are retrieved in 1.10.

This discussion has been closed.