1 | <?php namespace Modules\Dashboard\Composers; |
||
5 | class WidgetViewComposer |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | private $subViews = []; |
||
11 | |||
12 | /** |
||
13 | * @param View $view |
||
14 | */ |
||
15 | public function compose(View $view) |
||
19 | |||
20 | /** |
||
21 | * Add the html of the widget view to the given widget name |
||
22 | * @param string $name |
||
23 | * @param string $view |
||
24 | * @return $this |
||
25 | */ |
||
26 | public function addSubview($name, $view) |
||
32 | |||
33 | /** |
||
34 | * Add widget options to the given widget name |
||
35 | * @param $name |
||
36 | * @param array $options |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function addWidgetOptions($name, array $options) |
||
45 | |||
46 | /** |
||
47 | * Set the widget name |
||
48 | * @param string $name |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setWidgetName($name) |
||
57 | } |
||
58 |