addField( (new CWidgetFieldMultiSelectItemView($data['fields']['itemids'], $data['captions']['items']['itemids'])) ->setPopupParameter('value_types', [ ITEM_VALUE_TYPE_FLOAT, ITEM_VALUE_TYPE_STR, ITEM_VALUE_TYPE_LOG, ITEM_VALUE_TYPE_UINT64, ITEM_VALUE_TYPE_TEXT ]) ) ->addField( new CWidgetFieldRadioButtonListView($data['fields']['style']) ) ->addField( new CWidgetFieldIntegerBoxView($data['fields']['show_lines']) ) ->addField( new CWidgetFieldCheckBoxView($data['fields']['show_as_html']) ) ->addField(array_key_exists('dynamic', $data['fields']) ? new CWidgetFieldCheckBoxView($data['fields']['dynamic']) : null ) ->show();