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

Update with new addons features #126

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update with new addons features #126

wants to merge 5 commits into from

Conversation

daguilarm
Copy link

For example:

{!! BootForm::inputGroup('Search date', 'date_start')
->addGroupClass('col-md-2')
->addClass('date')
->afterAddon(icon('date'))
->addAddonClass('input-addon-customize')
->addAddonId('open-modal')
->required()
!!}

Now I can open a bootstrap modal, just clicking in the addon, and also, customize the addon with a custom css class.

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
Copy link

coveralls commented Jan 23, 2017

Coverage Status

Coverage increased (+0.3%) to 91.228% when pulling 6e0e544 on daguilarm:update-with-addons-features into 6dd67ad on adamwathan:master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants