문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top