Coder Social home page Coder Social logo

Comments (12)

aranw avatar aranw commented on July 21, 2024

I understand what's gone on, bower looks at the releases and 1.9.4 is the latest release set against DataTables, TableTools latest version requires 1.10

from tabletools.

aranw avatar aranw commented on July 21, 2024

Updating the version has not fixed this error.

from tabletools.

 avatar commented on July 21, 2024

Can you please link me to a page showing the error.

TableTools does check for the Api object before using it: https://github.com/DataTables/TableTools/blob/master/media/js/TableTools.js#L2538

from tabletools.

aranw avatar aranw commented on July 21, 2024

I can't link the page am afraid, as its in local development at moment

from tabletools.

aranw avatar aranw commented on July 21, 2024

I believe the issue is related to way RequireJS loads files, it'll be great if you can add support for RequireJS into this library seen as its already in DataTables it makes sense to add it to this as well.

from tabletools.

 avatar commented on July 21, 2024

Agreed. All of the DataTables extras need to be updated for RequireJS. I will be adding that in the next major release for each plug-in.

I'll leave this bug open for the moment to remind me to do exactly that, but it will likely take a little while as I'm focusing my time on DataTables core at the moment.

from tabletools.

aranw avatar aranw commented on July 21, 2024

I've done a pull request as I needed this sorting for a project am working on

from tabletools.

 avatar commented on July 21, 2024

Thanks for this. I'll use a named AMD method rather than an anonymous one though, and I'm planning on moving TableTools to attach to $.fn.dataTable, as all DataTables extras will in future. I'll make these two changes at the same time.

from tabletools.

Eywek avatar Eywek commented on July 21, 2024

Hi i have the same problem with the plugins boostrap. How i can resolve that ? Thanks.

from tabletools.

 avatar commented on July 21, 2024

@Eywek - Please link to a test case showing the problem.

from tabletools.

zeroows avatar zeroows commented on July 21, 2024

I managed to solve this and I'm using requirejs with angularAMD

"datatables": {
"deps": ['jquery'],
"exports": '$.fn.dataTable'
},

shim: {
        'angular': {
            exports: "angular"
        },
        'datatables': { 
            "deps": ['jquery'], 
            "exports": '$.fn.dataTable' 
        },
    },

from tabletools.

danpadua avatar danpadua commented on July 21, 2024

Remove possibles duplicates references of the datatables.responsive.js. Work for me perfectly.

from tabletools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.