1 | <?php |
||
14 | class HighChartsWidget extends Widget |
||
15 | { |
||
16 | /** |
||
17 | * @var array the HTML attributes for the links container tag. |
||
18 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
19 | */ |
||
20 | public $options = []; |
||
21 | /** |
||
22 | * @var array the options for the HighCharts plugin. Default options have exporting enabled. |
||
23 | * Please refer to the HighCharts plugin Web page for possible options. |
||
24 | * @see http://api.highcharts.com/highcharts |
||
25 | */ |
||
26 | public $clientOptions = []; |
||
27 | /** |
||
28 | * @var bool Set to true to enable 3D support. |
||
29 | */ |
||
30 | public $enable3d = false; |
||
31 | /** |
||
32 | * @var bool Set to true to enable support for more chart types. |
||
33 | */ |
||
34 | public $enableMore = false; |
||
35 | /** |
||
36 | * @var array the modules to register. The modules need to point to the name of the modules available under |
||
37 | */ |
||
38 | public $modules = []; |
||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | private $_renderTo; |
||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private $_src = ''; |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function init() |
||
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | public function run() |
||
85 | |||
86 | /** |
||
87 | * Registers the script for the plugin |
||
88 | */ |
||
89 | public function registerClientScript() |
||
117 | } |
||
118 |