Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }