Grids of images, videos, text, and more
Basic example of usage is this:
echo CHtml::openTag('div', array('class' => 'row-fluid')); $this->widget( 'booster.widgets.TbThumbnails', array( 'dataProvider' => $thumbDataProvider, 'template' => "{items}\n{pager}", 'itemView' => 'application.views.widgets.grouping._thumb', ) ); echo CHtml::closeTag('div');
Note that we wrapped the list in element with class .row-fluid
.
This is so our list items will be fluid width.
Here is the content of _thumb.php
template:
<div class="col-sm-6 col-md-4"> <div class="thumbnail"> <img src="<?php echo bu('images/placeholder260x180.gif');?>" alt=""> <div class="caption"> <h3>Thumbnail label</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p> </div> </div> </div>
Here's all configuration properties which you can set for TbEditableView widget.
Property | Description |
---|---|
type name = default |
description |