public function getAttributesView($style_to_replace = '', array $row_data = [])
    {
        $attr = [];

        if ($this->width) {
            $attr['width'] = 'width="' . $this->width . '"';
        }
        if ($this->align) {
            $attr['align'] = 'align="' . $this->align . '"';
        }
        if ($this->nowrap) {
            $attr['nowrap'] = 'nowrap="nowrap"';
        }
        if ($this->onclick) {
            $attr['onclick'] = 'onclick="' . ($row_data ? $this->replaceTemplateVars($row_data, $this->getOnclick()) : $this->onclick) . '"';
        }
        if ($this->onchange) {
            $attr['onchange'] = 'onchange="' . ($row_data ? $this->replaceTemplateVars($row_data, implode(';', $this->getOnchange())) : implode(';', $this->getOnchange())) . '"';
        }
        if ($this->key) {
            $attr['data-column_key'] = 'data-column_key="' . $this->key . '"';
        }
        if ($this instanceof ColumnOrder && $row_data) {
            $attr['data-order'] = 'data-order="' . $this->getCellData($row_data) . '"';
        }
        if (isset($row_data['id'])) {
            $attr['data-id'] = 'data-id="' . $row_data['id'] . '"';
        }

        if ($style_to_replace) {
            $attr['style'] = 'style="' . $style_to_replace . '"';
        } elseif ($this->style) {
            $attr['style'] = 'style="' . $this->style . '"';
        }

        if (\count($attr) === 0) {
            return '';
        }

        return ' ' . implode(' ', $attr) . $this->getDataAttributesHtml($row_data);
    }