Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addons with Bootstrap 4 #600

Merged
merged 4 commits into from
Jan 21, 2021
Merged

Conversation

tortuetorche
Copy link
Contributor

@tortuetorche tortuetorche commented Dec 30, 2020

Usage with Laravel:

{{-- Basic text addon --}}
{!! Former::open()->method('GET') !!}
    {!! Former::text('test2')->append('€') !!}
{!! Former::close() !!}

{{-- Icon addon --}}
{!! Former::open()->method('GET') !!}
    {!! Former::text('test icon')->append('<i class="fa fa-thumbs-up"></i>') !!}
{!! Former::close() !!}

{{-- Multiple text addons --}}
{!! Former::open()->method('GET') !!}
    {!! Former::text('test3')->append(['&euro;', 'second']) !!}
{!! Former::close() !!}

{{-- Button addon --}}
{!! Former::open()->method('GET') !!}
  {!! Former::text('test4')->append('<button class="btn">OK</button>') !!}
{!! Former::close() !!}

{{-- Button addons --}}
{!! Former::open()->method('GET') !!}
  {!! Former::text('test5')->append(['<button class="btn">OK</button>', '<button class="btn">2</button>']) !!}
{!! Former::close() !!}

Credits: @mrextreme

Reference:
#581 (comment)

Usage with Laravel:
{{-- Basic input addon --}}
{!! Former::open()->method('GET') !!}
    {!! Former::text('test2')->append('&euro;') !!}
{!! Former::close() !!}

{{-- Multiple input addons --}}
{!! Former::open()->method('GET') !!}
    {!! Former::text('test3')->append(['&euro;', 'second']) !!}
{!! Former::close() !!}

{{-- Button addon --}}
{!! Former::open()->method('GET') !!}
{!! Former::text('test4')->append('<button class="btn">OK</button>')
!!}
{!! Former::close() !!}

{{-- Button addons --}}
{!! Former::open()->method('GET') !!}
{!! Former::text('test5')->append(['<button
class="btn">OK</button>', '<button class="btn">2</button>']) !!}
{!! Former::close() !!}

Credits: @mrextreme

Reference:
formers#581 (comment)
@tortuetorche tortuetorche merged commit 48f3cc6 into formers:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant