Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Can't add class for checkbox form-group #112

Open
shusharin opened this issue Dec 18, 2016 · 0 comments
Open

Can't add class for checkbox form-group #112

shusharin opened this issue Dec 18, 2016 · 0 comments

Comments

@shusharin
Copy link

I try:
BootForm::checkbox('Label name', 'field_name')->addGroupClass('some-css-class');
result:

<div class="form-group">
	<div class="col-sm-offset-4 col-sm-8 col-md-offset-4 col-md-8 col-lg-offset-3 col-lg-9">
		<div class="checkbox some-css-class">
			<label>
				<input type="checkbox" name="field_name" value="1">Label name
			</label>
		</div>
	</div>
</div>
  • "some-css-class" added in div.checkbox.
    How can i get next result? ("some-css-class" added in div.form-group)
<div class="form-group some-css-class">
	<div class="col-sm-offset-4 col-sm-8 col-md-offset-4 col-md-8 col-lg-offset-3 col-lg-9">
		<div class="checkbox">
			<label>
				<input type="checkbox" name="field_name" value="1">Label name
			</label>
		</div>
	</div>
</div>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant