Comments (4)
Cannot replicate your issue.
The threeState
false does work on the demo - last example in basic usage and the last example in examples/index.html
file.
Are you sure you have the right versions - let know what is the scenario you are facing this?
from bootstrap-checkbox-x.
Try remove all buttons from example (index.html) except:
input id="test-1" type="checkbox" />
and remove also scripts - leave only
$el.checkboxX({'threeState': false, enclosedLabel: true});
In that case button doesn't work properly.
If I miss something pls let me know.
But I found when I add true to:
self.$cbx.on('click', function(e) {
if (!options.enclosedLabel) {
self.change(true);
}
});
everything works fine.
I added changes to my fork and sent you pull request
Best regards
from bootstrap-checkbox-x.
Here are some mismatches in your configuration:
- If you are setting
enclosedLabel
totrue
then you must enclose your input within a label like below (else the behavior will fail):
<label>
<input id="test-1" type="checkbox" />
Check
</label>
Then this should work
$("#test-1").checkboxX({'threeState': false, enclosedLabel: true});
I will check the other scenario without label and update.
from bootstrap-checkbox-x.
Check upgraded release v1.5.0.
from bootstrap-checkbox-x.
Related Issues (20)
- custom values not working HOT 2
- Two possible + set indeterminate
- encodeLabel possible? HOT 1
- Display initial value correctly when initializing with checkbox
- Add support for `bootstrap-sass` through new `sass` branch HOT 1
- Default Value HOT 1
- submit form need checkbox checked, but now 0 and empty is unchecked HOT 1
- NPM Package
- checkbox.change - triggers 2 times then user clicks on checkbox HOT 2
- custom values not working HOT 1
- Keeps returning 404 Not Found Error HOT 1
- Not working with angularJS app HOT 1
- Dynamically change Checked | Unchecked states HOT 1
- Rename events to start with `checkbox:` instead of ending with `.checkbox` HOT 1
- waiting for v1.5.5 HOT 1
- Use enhanced SVG icons
- Enhancements to support all bootstrap versions (5.x, 4.x. and 3.x)
- Revamp bootstrap checkbox-x markup for better styling & alignment across Bootstrap versions
- New boolean property `useCrossIcon` for checked
- Allow custom icon CSS for checked, unchecked and null states
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 bootstrap-checkbox-x.