private function GetAdditionalAttributes() { $result = new AttributesBuilder(); if ($this->GetShowLineNumbers()) { $result->AddAttrValue('start-line-number', $this->GetStartLineNumber()); } $result->AddAttrValue('data-delete-selected-action', $this->GetDeleteSelectedLink(), true); $result->AddAttrValue('data-grid-quick-filter-value', $this->GetQuickFilter()->GetValue(), true); return $result->GetAsString(); }
private function GetAdditionalAttributes() { $result = new AttributesBuilder(); $result->AddAttrValue('type', $this->GetPasswordMode() ? 'password' : 'text'); if ($this->GetMaxLength() != null) { $result->AddAttrValue('maxlength', $this->GetMaxLength()); } if ($this->GetSize() != null) { $result->AddAttrValue('size', $this->GetSize()); } return $result->GetAsString(); }