public function createElement()
 {
     $element = parent::createElement();
     $enabled = $this->getProperty('enabled') !== false;
     if (!$enabled) {
         $element->attr('disabled', 'disabled');
     }
     $this->renderContent($element);
     return $element;
 }
Example #2
0
 public function createElement()
 {
     $element = parent::createElement();
     $enabled = $this->getProperty('enabled') !== false;
     if (!$enabled) {
         $element->attr('disabled', 'disabled');
     }
     if ($this->getProperty('separator')) {
         $element->attr('class', 'k-separator');
     } else {
         $this->renderContent($element);
     }
     return $element;
 }