Comments (7)
Hi, Tom!
Agreed. I've updated the master branch (006f258) and tested with the following script:
// configuration
requirejs.config({
baseUrl: 'js',
shim: {
'jcf.number': {
deps: ['jcf'],
exports: 'jcf.modules.Number'
},
'jcf.select': {
deps: ['jcf'],
exports: 'jcf.modules.Select'
},
'jcf.checkbox': {
deps: ['jcf'],
exports: 'jcf.modules.Checkbox'
}
}
});
// test
require(['jquery', 'jcf', 'jcf.select', 'jcf.checkbox', 'jcf.number'], function($, jcf) {
$(function() {
jcf.replaceAll();
});
});
I'm going to add a few more fixes in modules and create a new release after that.
from jcf.
Awesome, thanks for the quick turnaround!
from jcf.
Hi,
plase, is this issue really fixed? Because when I have this code, it doesnt work
requirejs.config({
baseUrl: staticUrl+'js/ver2/',
paths: {
jcf: '../../bower_components/jcf/js/jcf',
'jcf.checkbox': '../../bower_components/jcf/js/jcf.checkbox',
'jcf.radio': '../../bower_components/jcf/js/jcf.radio',
'jcf.select': '../../bower_components/jcf/js/jcf.select.min'
},
shim: {
'imageFill': ['jquery'],
'jcf.checkbox': {
deps: ['jcf'],
exports: 'jcf.modules.Checkbox'
},
'jcf.radio': {
deps: ['jcf'],
exports: 'jcf.modules.Radio'
},
'jcf.select': {
deps: ['jcf'],
exports: 'jcf.modules.Select'
}
}
});
requirejs(['jcf','jcf.checkbox', 'jcf.radio', 'jcf.select'], function (jcf) {
jcf.replaceAll(pluginInterface.jcf.conf.selector);
});
Thanks a lot
from jcf.
Hey, @jirkae !
What kind of error do you have? jcf is undefined
and it's coming from one of the jcf modules?
from jcf.
Oh, that was fast :D
jcf.checkbox.js:171 Uncaught ReferenceError: jcf is not defined
On each module
from jcf.
Ok, I think we broke AMD compatibility with previous commit.
Try to use jcf.js from 79ec1a8. Will it work for you?
from jcf.
Cool, thanks a lot, it works!
from jcf.
Related Issues (20)
- Wrong selectbox rendering after reset form with scrollable.js HOT 1
- full-text search for select box
- Keyboard Tab to switch to next form controll not working
- scrollable looses styling on ios
- Default number input with step 2 on touchpads
- Issue with custom scroll on iOS HOT 1
- programmatically close dropdown when going out of focus HOT 2
- Select options disappear after programmatically trigger hideDropDown HOT 2
- How to unbind element with JCF. HOT 1
- Can I turned off init jcf-scrollable on resize? HOT 1
- How can I do scrollTop? HOT 1
- How to hide the option from JCF dropdown when native select is hidden using method hide() HOT 1
- onchange of select HOT 1
- Have to use small hack with v-model checkboxes on vue.js 2.x HOT 1
- Selection popup dissapears after clicking on dropdown element in Firefox on mobile HOT 1
- How can I close select dropdown programmatically? HOT 2
- compatibility jquery 3
- How to exclude elements from rendering HOT 1
- Ajax loading HOT 3
- JCF js library does not allow smartphone wheels (IOS device ) on multiple selection select fields
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 jcf.