1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
438 stars 176 forks source link

requirejs #133

Closed v2pwww closed 8 years ago

v2pwww commented 9 years ago

Is it possible use plugin with amd loader require.js? Plugin core imported with require.js shim option like so:

shim: {
        'plugins/jplist.core': {
            deps: ['jquery'],
            exports: '$.fn.jplist'
        }
}

but have a problem with imported jplist addon. In exaple how to imported filter toggler?

1rosehip commented 8 years ago

Added jplist + require.js demo: https://github.com/no81no/jplist/tree/master/demo/jplist-with-requirejs-demo