0

I have given a Thumbnail view to my page which is an extended widget of bootstrap want to make it onclick enlarge or onclick thumbnail image change. How may I set those two options in my widgets. I searched, but couldn't get the right one.

$this->widget(
'bootstrap.widgets.TbThumbnails',
array(        
    'dataProvider' => $dataProvider,
    'template' => "{items}\n{pager}",
    'itemView' => '_thumb',        
    )     );  

where the _thumb is my view file(php file).

user1799171
  • 567
  • 1
  • 3
  • 15

1 Answers1

0

With this widget you can't. It is for creating a list of thumbnails. If you want to enlarge them in eg a lightbox you have to install a lightbox extension and make it work with this thumbnails. It's the same for changing the images onclick.

Michiel
  • 2,143
  • 1
  • 21
  • 21
  • I think those extensions are useful to fetch the folder images one by one with two different set of images folder. In my case I fetch all the images from the database url, so implementing such extension and maintaining two set of images is cumbersome!! – user1799171 Jan 31 '14 at 10:32