adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

New option to customize the css inside the addon component #123

Open daguilarm opened 7 years ago

daguilarm commented 7 years ago

If we want to add a custom css to the input-group-addon:

<div class="input-group">
    <input type="text" name="example2">
    <span class="input-group-addon newCss1 newCss2">@domain.com</span>
</div>

Using something like this:

$input->afterAddon('@domain.com')->addAddonCss('newCss1')->addAddonCss('newCss2');
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 91.071% when pulling 84064ce4eee6a33cf12cde6abb4af4904e585dbc on daguilarm:master into f358440d6303514256159a1da021ff39f732eb3f on adamwathan:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 91.071% when pulling 252a83e4675ebd2b8d193426c51a23e19d0c3fd2 on daguilarm:master into f358440d6303514256159a1da021ff39f732eb3f on adamwathan:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-1.6%) to 89.286% when pulling 3eeb7d113046a9767600bff9552dc60876745e37 on daguilarm:master into f358440d6303514256159a1da021ff39f732eb3f on adamwathan:master.