1 | <?php |
||
22 | class HighCharts extends Widget |
||
23 | { |
||
24 | /** |
||
25 | * @var array the HTML attributes for the links container tag. |
||
26 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
27 | */ |
||
28 | public $options = []; |
||
29 | /** |
||
30 | * @var array the options for the HighCharts plugin. Default options have exporting enabled. |
||
31 | * Please refer to the HighCharts plugin Web page for possible options. |
||
32 | * @see http://api.highcharts.com/highcharts |
||
33 | */ |
||
34 | public $clientOptions = []; |
||
35 | /** |
||
36 | * @var bool Set to true to enable 3D support. |
||
37 | */ |
||
38 | public $enable3d = false; |
||
39 | /** |
||
40 | * @var bool Set to true to enable support for more chart types. |
||
41 | */ |
||
42 | public $enableMore = false; |
||
43 | /** |
||
44 | * @var array the modules to register. The modules need to point to the name of the modules available under |
||
45 | * @vendor/2amigos/yii2-highcharts-widget/assets/vendor/modules. Only the filename (ie `drilldown.js`) that is very |
||
46 | * important. |
||
47 | */ |
||
48 | public $modules = []; |
||
49 | /** |
||
50 | * @var bool |
||
51 | */ |
||
52 | private $_renderTo; |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 4 | public function init() |
|
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | 3 | public function run() |
|
90 | |||
91 | /** |
||
92 | * Registers the script for the plugin |
||
93 | */ |
||
94 | 3 | public function registerClientScript() |
|
122 | } |
||
123 |