GithubHelp home page GithubHelp logo

extremefe / bootstrap-checkbox Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 5.0 218 KB

Three state checkbox for Bootstrap

Home Page: http://extremefe.github.io/bootstrap-checkbox/

CSS 9.13% JavaScript 90.87%

bootstrap-checkbox's People

Contributors

extremefe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bootstrap-checkbox's Issues

Ajax submit removes the styles

Hey there , is there anyway we can keep the style after form submit. I am using the gravity form and when the form runs the ajax validation before submit, it removes the styles.

Icon to Glyph.

In Bootstrap 3.1.1 the "icon" turns to "glyph". The size of the glyph (ok & stop) do not fit into the checkbox.

I've changed the checkbox container to 17px by 17px, and the "i" top from -2px to 0px, the same with the left. The checkbox is now bigger, but its not a problem at all. You can change the font-size also.

Manually set value to ThreeState checkbox

Hi !

I hope you'll answer this quiet fast ! :P

So, what i wanna do is simple ! When you initialize a three state checkbox with your plugin. You do it like this : $('#checkbox').checkbox().chbxChecked(null);

My problem is that this initialize the checkbox with the ambigous/null value. And if i replace the null by 'true' or 'false' my checkbox isn't a three state one :/.

Any idea of how i could do this ?

No icon when converting a programmatically checked checkbox

If there is a checkbox with no checked attribute, yet with this.checked set to true, then converting it to bootstrap-checkbox format does not fill new node with an icon (while the state is preserved). It results in a weird behaviour when the checkbox appears to be unchecked, while actually it's checked; and first mouse click does visually nothing as a consequence.

How to reset the checkbox

I need to have a reset function to uncheck the bootstrap checkbox check event. If my reset looks like this:
var welChild = $('.checkbox-child').removeClass("checked");
var welParent = $('#checkbox-parent').removeClass("checked");
// remove the icon-ok Glyphicons from bootstrap checkbox
$('.bootstrap-checkbox i').remove();

After the reset, the user has to double-click the checkbox which was reset from checked to unchecked in order to have it checked again. Any idea how to do the reset correctly?
Thanks.

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.