Support the ongoing development of Laravel.io →
Views Laravel.io
Last updated 2 years ago.
0

could someone help me?

Last updated 2 years ago.
0

Try http://image.intervention.io/getting_started/laravel

Post questions if you're not sure what you're looking at.

Last updated 2 years ago.
0

Hi, I think my question has not been good. I know how to paint my images dynamically, but I want to add the event lightbox, for that when you click in the image, this image will open more big. Something like this:

http://dimsemenov.com/plugins/magnific-popup/

In this website, I want to used this example: "Single image lightbox" but not work properly.

Them, could you help me with others possibilities or something?

Thank you in advance!

Last updated 2 years ago.
0

I believe that you didn't try reading enough on Form documentation. For example, you can take a look here: http://laravel.com/docs/html#labels

So, to add lightbox or other popup windows plugins, you can add an identified class, and then attach loading those plugins through click event or other methods.

{{ HTML::image($path, $img, array( 'width' => 100, 'height' => 100, 'class' => 'popup-img' )) }}

Then:

      $(document).ready(function() {

        $('.popup-img').magnificPopup({
          type: 'image',
          closeOnContentClick: true,
          mainClass: 'mfp-img-mobile',
          image: {
            verticalFit: true
          }          
        });       
      });
    
Last updated 2 years ago.
0

I tried this code but, dont work good. I need create a event to onClick, right?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

despotars despotars Joined 15 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.