Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top