protected function createElement() { $element = new \Kendo\Html\Element('div'); $tabs = new \Kendo\Html\Element('ul'); $element->append($tabs); $items = $this->getProperty('items'); $hasContentUrls = false; $contentUrls = array(); if ($items) { foreach ($items as $item) { $tabs->append($item->createElement()); if ($hasContentUrls == false) { $hasContentUrls = strlen($item->getProperty("contentUrl")); } $contentUrls[] = $item->getProperty("contentUrl"); $contentElement = $item->createContentElement(); if ($contentElement) { $element->append($contentElement); } } } if ($hasContentUrls) { $this->setProperty('contentUrls', $contentUrls); } return $element; }
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(); }
protected function renderContent($element) { $content = $this->getProperty('content'); if ($content) { $subgroup = new \Kendo\Html\Element('ul'); $subitem = new \Kendo\Html\Element('li'); $subitem->html($content); $subgroup->append($subitem); $element->append($subgroup); } }
public function renderItems($element) { $items = $this->getProperty('items'); if ($items) { $itemContainer = new \Kendo\Html\Element('ul'); foreach ($items as $item) { $itemContainer->append($item->createElement()); } $element->append($itemContainer); } }
protected function createElement() { $items = $this->getProperty('items'); $element = new \Kendo\Html\Element('ul'); if ($items) { foreach ($items as $item) { $element->append($item->createElement()); } } return $element; }
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; }
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; }