Comments (4)
Hi,
Thank you for the feedback, I'm glad that the plugin is useful for you.
- I've uploaded the lib to npm, it's accessible here: https://www.npmjs.com/package/jplist-es6
- There is an ES6 jplist version here: https://github.com/1rosehip/jplist-es6/blob/master/dist/1.2.0/jplist-es6.min.js
Also it's possible to import index.js or jplist.js as entry point in your source files depending on your needs.
from jplist-es6.
Hi! thanks for the help! I connected the plugin as a module. Is it possible to call Jplist through the constructor (as indicated in the picture)?
The following error in the console
from jplist-es6.
There is some required code that should be added before jplist initialization, you may find it in index.js. jPList requires window.jplist.controlTypes that actually just a ES6 Map of controls that you need in your app. In the index.js file above there is a full list of controls, but you may include only controls that you need.
Also index.js contains custom events polyfill for IE 10/11, without it jPList won't work in these browsers.
And the last important thing is binding to jPList APIs:
window.jplist.init = jplist.init.bind(jplist);
window.jplist.refresh = jplist.refresh.bind(jplist);
window.jplist.resetControls = jplist.resetControls.bind(jplist);
window.jplist.resetControl = jplist.resetControl.bind(jplist);
from jplist-es6.
@12evgen
try import "jplist-es6/dist/1.2.0/jplist-es6.min.js";
from jplist-es6.
Related Issues (20)
- Reset API Example
- Range Slider Steps
- Remove all elements HOT 1
- go back to first page on filter HOT 3
- [Question] about JPList refresh HOT 2
- data-mode-advance
- Selected true not working on Sort datetime
- if controls are added dynamically?
- Not an issue, but rather a question
- Jplist & DatePicker
- Car Demo Page Files
- Option to use disabled attribute instead of class
- Refresh is not working
- When filter with "data-or" is used, sorting goes wrong HOT 1
- Using ajax DataSource? HOT 1
- Vue.js and JPlist
- Storage function not working HOT 1
- Can somone help me setup the pagination part?
- https://www.jplist.org/ does not seem to be working HOT 1
- Is JPLIST still supported? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jplist-es6.