| 1 | <?php |
||
| 7 | class Html implements RendererInterface |
||
| 8 | {
|
||
| 9 | /** |
||
| 10 | * Html template |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $template = 'at-datagrid/grid'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Additional css files |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $customCss = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Additional js files |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $customJs = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $template |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setTemplate($template) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getTemplate() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $customCss |
||
| 50 | */ |
||
| 51 | public function addCustomCss($customCss) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getCustomCss() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getCustomJs() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string $customJs |
||
| 74 | */ |
||
| 75 | public function addCustomJs($customJs) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param array $variables |
||
| 82 | * @return ViewModel |
||
| 83 | */ |
||
| 84 | public function render(array $variables = []) |
||
| 94 | } |