Semantic-Org / UI-Checkbox

A checkbox allows a user to select a value from a small set of options, often binary
http://semantic-ui.com/modules/checkbox.html
6 stars 8 forks source link

Styled but Unclickable Checkboxes #1

Closed mgarf closed 9 years ago

mgarf commented 9 years ago

I have been trying to get this radio/checkboxes to work and I got styling to show but can't click/toggle any of them. I looked at the documentation but it's pretty sparse. Is there any initializers I need to add to the JS?

ghost commented 9 years ago

Hey @mgarf got the same issue here.. what did you do to resolve this situation?

mgarf commented 9 years ago

Hi @phildaponte ,

I used the top answer here for reference http://stackoverflow.com/questions/25846115/icheck-js-in-meteor-0-9-1-1. In terms of File placement and used this to initialize the code:

Template.[The name of your template].rendered = function() { this.$("input").iCheck({ checkboxClass: "icheckbox_square-purple", radioClass: "iradio_square-purple" }); };

jlukic commented 9 years ago

Oh no a competitor!

Checkboxes just need

$('.ui.checkbox').checkbox();

Or match the iD field of the label to the input and don't use JavaScript.

See usage tab of checkbox docs

mgarf commented 9 years ago

sorry, I thought this was a issue regarding iCheck, didn't realize this was not the right repository. I wrote that response above when I was half asleep