_propertiesDefaults['width'] = 70; } public function prepareProperties(&$data) { $data['rowsLabelList'] = $this->prepareOptions($data['rowsLabel']); $data['columnsLabelList'] = $this->prepareOptions($data['columnsLabel']); $elementWidth = ($data['width'] + self::ELEMENT_WIDTH_GAP) * $data['columns'] + $data['headerWidth']; if ($data['labelPlacement'] == 'top') { $data['totalWidth'] = max($elementWidth, $data['labelWidth']) + self::WIDTH_GAP; } else { $data['totalWidth'] = $elementWidth + $data['labelWidth'] + self::WIDTH_GAP; } $data['propertyName'] = $data['name']; return $this; } }