Exemple #1
0
 protected function createElement()
 {
     $input = new \Kendo\Html\Element('input', true);
     $value = $this->getProperty('value');
     $input->attr('type', 'color');
     if (isset($value)) {
         $input->attr('value', $value);
     }
     return $input;
 }
 protected function createItem()
 {
     $element = new \Kendo\Html\Element('li');
     if ($this->getProperty('expanded')) {
         $element->attr('class', 'k-state-active');
     }
     if ($this->getProperty('enabled') === false) {
         $element->attr('disabled', 'disabled');
     }
     $text = $this->getProperty('text');
     if ($text) {
         $element->append(new \Kendo\Html\Text($text));
     }
     return $element;
 }
Exemple #3
0
 public function html()
 {
     $element = $this->createElement();
     $wrapper = new \Kendo\Html\Element('div');
     $wrapper->attr('class', 'k-tabstrip-wrapper');
     $wrapper->append($element);
     $this->addAttributes($element);
     return $wrapper->outerHtml();
 }
Exemple #4
0
 public function html()
 {
     $html = parent::html();
     if ($this->getProperty('pageable')) {
         $pager = new \Kendo\Html\Element('div');
         $pager->attr('id', "{$this->id}_pager");
         $html = "{$html} {$pager->outerHtml()}";
     }
     return $html;
 }
 public function createElement()
 {
     $element = new \Kendo\Html\Element('li');
     if ($this->getProperty('expanded')) {
         $element->attr('data-expanded', 'true');
     }
     $this->renderSprite($element);
     $this->renderText($element);
     $this->renderItems($element);
     return $element;
 }
Exemple #6
0
 protected function createElement()
 {
     $element = new \Kendo\Html\Element('div');
     $element->attr('class', 'k-splitter');
     $panes = $this->getProperty('panes');
     if (isset($panes)) {
         foreach ($panes as $pane) {
             $element->append($pane->createElement());
         }
     }
     return $element;
 }
Exemple #7
0
 protected function createElement()
 {
     $tag = $this->getProperty('tag');
     if (gettype($tag) != 'string') {
         $tag = 'textarea';
     }
     $element = new \Kendo\Html\Element($tag);
     if ($tag != 'textarea') {
         $element->attr('contentEditable', 'true');
     }
     $content = $this->getProperty('content');
     if (gettype($content) == "string") {
         $element->html($content);
     }
     return $element;
 }
 private function createInput($name, $propertyName)
 {
     $element = new \Kendo\Html\Element('input', true);
     $element->attr('name', $name);
     $element->attr('type', 'range');
     if ($this->getProperty('min') !== null) {
         $element->attr('min', $this->getProperty('min'));
     }
     if ($this->getProperty('max') !== null) {
         $element->attr('max', $this->getProperty('max'));
     }
     if ($this->getProperty('step') !== null) {
         $element->attr('step', $this->getProperty('step'));
     }
     if ($this->getProperty($propertyName) !== null) {
         $element->attr('value', $this->getProperty($propertyName));
     }
     return $element;
 }
Exemple #9
0
 protected function createElement()
 {
     $element = new \Kendo\Html\Element('input', true);
     $element->attr('type', 'file');
     return $element;
 }