| 1 | <?php |
||
| 18 | class ImageColumn extends DataColumn |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var array the HTML options of the image tag |
||
| 22 | */ |
||
| 23 | public $imgOptions = []; |
||
| 24 | /** |
||
| 25 | * @var string|callable $path if string will be prepended to the column's attribute. If a callable is provided, it |
||
| 26 | * will call it passing the model's attribute value. |
||
| 27 | */ |
||
| 28 | public $path; |
||
| 29 | /** |
||
| 30 | * @var string $emptyText renders if $attribute is null |
||
| 31 | */ |
||
| 32 | public $emptyText = ''; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function init() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritdoc |
||
| 55 | */ |
||
| 56 | protected function renderDataCellContent($model, $key, $index) |
||
| 75 | } |
||
| 76 |