Question

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).

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top