public function createElement() { $element = parent::createElement(); $enabled = $this->getProperty('enabled') !== false; if (!$enabled) { $element->attr('disabled', 'disabled'); } $this->renderContent($element); return $element; }
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; }