8ad6fbc1
Alexey Boroda
first commit
|
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
|
<?php
namespace artbox\catalog\catalog\columns;
use artbox\catalog\assets\ProductsAsset;
use artbox\core\admin\grid\columns\Column;
class ArrowsColumn extends Column
{
/**
* @var array
*/
public $contentOptions = [
'class' => 'arrow-adm',
];
public function init()
{
ProductsAsset::register($this->grid->view);
parent::init();
}
protected function renderHeaderCellContent()
{
return '';
}
protected function renderDataCellContent($model, $key, $index)
{
return '<a><span data-id="' . $key . '" class="fa fa-chevron-down"></span></a>';
}
}
|