-
Notifications
You must be signed in to change notification settings - Fork 33
/
EBootstrapListViewItem.php
51 lines (42 loc) · 1.08 KB
/
EBootstrapListViewItem.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
Yii::import('zii.widgets.CDetailView');
/**
* Render a {@link EBootsrapListView} item
* Include the widget into your view file for the {@link EBootstrapListView}
*
* @author Tim Helfensdörfer <[email protected]>
* @version 0.3.0
* @package bootstrap.yiiwidgets
*/
class EBootstrapListViewItem extends CDetailView {
/**
* Do not include the default css file
*
* If its set to false, no file will be included
*/
public $cssFile = false;
/**
* Do not include the default assets
*/
public $baseScriptUrl = false;
/**
* Tag to enclose the view
*/
public $tagName = 'div';
/**
* Template of the items
*/
public $itemTemplate = "<div class=\"{class}\"><span class=\"bootstrap-list-view-item-attribute\">{label}:</span> <span class=\"bootstrap-list-view-item-value\">{value}</span></div>\n";
/**
* Class of the items
*/
public $itemCssClass = array('bootstrap-list-view-item-content');
/**
* Init the widget
*/
public function init() {
parent::init();
EBootstrap::mergeClass($this->htmlOptions, array('bootstrap-list-view-item'));
}
}
?>