Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
2
4
7
8
14{
18 public function __construct()
19 {
20 $this->setHeight(380);
21 $this->setJsClassName('BX.Report.VisualConstructor.Widget.Content.AmCharts4');
22 }
23
30 public function handlerFinallyBeforePassToView($data)
31 {
32 return $result = array(
33 'type' => $this->getAmChartType(),
34 'theme' => 'none',
35 );
36 }
37
44 public function collectWidgetHandlerFormElements(BaseWidget $widgetHandler)
45 {
46 parent::collectWidgetHandlerFormElements($widgetHandler);
47 $widgetHandler->getFormElement('color')->setDisplay(false);
48 }
49
55 abstract protected function getAmChartType();
56}