26 parent::__construct();
29 $this->
setLogoUri(
'/bitrix/images/report/visualconstructor/view-number.jpg');
30 $this->
setComponentName(
'bitrix:report.visualconstructor.widget.content.number');
42 parent::collectReportHandlerFormElements($reportHandler);
44 $removeFormElement = $reportHandler->getFormElementByDataAttribute(
'role',
'report-remove-button');
45 if ($removeFormElement)
47 $removeFormElement->setDisplay(
false);
51 $whatWillCalculateField = $reportHandler->getFormElement(
'calculate');
52 $labelField = $reportHandler->getFormElement(
'label');
53 if ($whatWillCalculateField)
55 $labelField->addJsEventListener($whatWillCalculateField, $whatWillCalculateField::JS_EVENT_ON_CHANGE, array(
56 'class' =>
'BX.Report.VisualConstructor.FieldEventHandlers.Title',
57 'action' =>
'whatWillCalculateChange',
59 $whatWillCalculateField->addAssets(array(
60 'js' => array(
'/bitrix/js/report/js/visualconstructor/fields/reporttitle.js')
76 $resultWidget = parent::prepareWidgetContent($widget, $withCalculatedData);
78 if ($withCalculatedData)
80 $resultWidget[
'config'][
'color'] = $widget->
getWidgetHandler()->getReportHandlers()[0]->getFormElement(
'color')->getValue();
81 $resultWidget[
'config'][
'title'] = $widget->
getWidgetHandler()->getReportHandlers()[0]->getFormElement(
'label')->getValue();
static getMessage($code, $replace=null, $language=null)