formers / former

A powerful form builder, for Laravel and other frameworks (stand-alone too)
https://formers.github.io/former/
1.34k stars 205 forks source link

How to style checkboxes #594

Closed bschooly closed 7 months ago

bschooly commented 4 years ago

Specifically how to get a space between checkbox and label?

claar commented 4 years ago

Hi @bschooly - I'm sorry the checkbox isn't rendering correctly. Former's job is to output the correct Bootstrap (or other framework) HTML, and it's the framework's job to style the elements.

If your checkbox isn't being styled correctly, please double-check that you have selected your correct framework in Former's config/former.php config file. If it's still rendering incorrectly, please post to this ticket:

  1. What version of Former you are using and what framework you have selected in config/former.php
  2. What version of Bootstrap (or another framework) you are using
  3. The Former code you are using to generate the checkbox (Former::checkbox('foo'), for example)
  4. The HTML output that is being generated by Former.
  5. A screenshot of the checkbox that is not being rendered correctly.
bschooly commented 4 years ago

Wow thanks for quick response.

  1. The changelog file newest entry says 4.0.0. Somewhere else to look.
  2. Bootstrap 4.5.0
  3. {!! Former::checkboxes('Options')->checkboxes($options['items'])->check($options['selected'])!!}
  4. Capture

bschooly commented 4 years ago

Well actually still had framework set to bootstrap3. Changing to 4 results in error. Do I need the latest former?

claar commented 4 years ago

Hi @bschooly - what error are you seeing? You can find out what version of Former you are using by looking in your composer.lock file -- you should see something like:

             "name": "anahkiasen/former",
             "version": "4.4.0",

Support for Bootstrap 4 was added in October 2018 in Former version 4.1.8, so you will have to be on that version or higher.

bschooly commented 4 years ago

4.0.5 so I've got upgrade and that in turn will probably mean upgrading laravel as I'm way behind on it for my application.

stayallive commented 7 months ago

Closing this issue because it is quite old and it has been a long time since there was any activity, if there is still a problem please open a new issue.