RequireJs Module

RequireJs Module

pixeddpixedd Posts: 1Questions: 1Answers: 0

Hi I'm using requireJs and dataTable plugin that I initialize in my App, after that I require a module and pass the reference of my dataTable in it, like that:

        require(["controller/search"], function (search) {
            table.search = search;
            table.search .init(that.dataTable);
        });

The strange thing is that I can access some basics informations in my search module like:

this.dataTable.page.info();

but I can't access:

this.dataTable.search( this.value ).draw(); -> return is not a function()

Am I doing something wrong ?

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Can you link to a test case showing the issue, per the forum rules please.

    Allan

This discussion has been closed.