Render list data
The ui parameter tells us if user interface is enable (buttons, links etc.)

@param ListDataEvent $event
@param bool $ui
@return string
4734
public function render(ListDataEvent $event, bool $ui = true):string
    {
        $data = $this->getData($event, !$ui);
        $params = array_merge(
            $data,
            [
                'columns' => $this->getColumns(),
                'actions' => $this->getActions(),
                'ui' => $ui,
            ]
        );

        return $this->container->get('vardius_list.view.renderer')->renderView($this->getView(), $params);
    }
479919
public function render(array $data = null) : string
    {
        if (null !== $data) {
            $this->bind($data);
        }
        return $this->twig->render($this->data);
    }
546867
public function onDataTag(GenericDataEvent $event)
    {
        $taggedObject = null;
        $data = $event->getData();

        if (is_array($data) && isset($data['tags']) && isset($data['data'])) {
            $user = isset($data['user']) ? $data['user'] : null;
            $replace = isset($data['replace']) && $data['replace'];
            $taggedObject = $this->manager->tagData($data['tags'], $data['data'], $user, $replace);
        }
        $event->setResponse($taggedObject);
    }
423352
public function renderList( $itemClassPrefix = "level-" ){
		$list	= array();																			//  
		foreach( $this->headings as $item ){														//  
			$link	= UI_HTML_Tag::create( 'a', $item->label, array( 'href' => "#".$item->id ) );	//  
			$attributes		= array( 'class' => $itemClassPrefix.$item->level );							//  
			$list[]	= UI_HTML_Elements::ListItem( $link, 0, $attributes );							//  
		}
		return UI_HTML_Tag::create( 'ul', $list, array( 'class' => 'index-list' ) );				//  
	}
371278
public function renderListAction(
        Action $action,
        DataGrid $dataGrid,
        array $viewParameters = []
    ): Response {
        $viewParameters = array_merge(
            $this->getViewParameters($action),
            ['datagrid' => $dataGrid],
            $viewParameters
        );

        return $this->renderAction($action, $viewParameters);
    }
1147879
public function renderReadablePropertyValue(RenderReadablePropertyValueEvent $event)
    {
        if (!$this->scopeDeterminator->currentScopeIsBackend()) {
            return;
        }

        if (null !== $event->getRendered()) {
            return;
        }

        $property = $event->getProperty();
        $value    = self::decodeValue(
            $event->getEnvironment(),
            $event->getModel(),
            $event->getProperty()->getName(),
            $event->getValue()
        );

        $extra = $property->getExtra();

        self::renderForeignKeyReadable($event, $extra, $value);
        self::renderArrayReadable($event, $value);
        self::renderTimestampReadable($event, $extra, $value);
        self::renderDateTimePropertyIsTstamp($event, $property, $value);
        self::renderSimpleCheckbox($event, $property, $extra, $value);
        self::renderTextAreaReadable($event, $property, $extra, $value);
        self::renderReferenceReadable($event, $extra, $value);

        if (null !== $event->getRendered()) {
            return;
        }

        self::renderDateTimeValueInstance($event, $value);
        self::renderOptionValueReadable($event, $property, $value);
    }
1115899
protected function renderDataCellContent($row, $data)
	{
		$tr = array();
		ob_start();
		foreach ($this->buttons as $id => $button) {
			$this->renderButton($id, $button, $row, $data);
			$tr['{' . $id . '}'] = ob_get_contents();
			ob_clean();
		}
		ob_end_clean();
		echo "<div class='btn-group'>" . strtr($this->template, $tr) . "</div>";
	}
389043
private function renderData()
    {
        echo '<li>Data<ul>';

        foreach ($this->controller->data as $name => $data) {
            // Remove previous overrides
            $override = false;

            // Search the data log array for this name
            $key = array_search($name, array_column($this->controllerDataLog, 'name'));

            // If the name exists in the data log array then get the class
            if ($key !== false) {
                $override = $this->controllerDataLog[$key]['class'];
            }

            // Update data log array with this items name and class
            $this->controllerDataLog[] = [
                'name' => $name,
                'class' => $this->controller->class
            ];

            // Get data type
            $dataType = (isset($data->method) ? gettype($data->returned) : gettype($data));

            // Echo
            echo "<li>{$name}";

            // Override
            if ($override) {
                echo "<small>overrides {$override}</small>";
            }

            // Data type
            echo "<small>{$dataType}</small>";

            // Method lines
            if (isset($data->method)) {
                echo "<small>line {$data->method->getStartLine()}&mdash;{$data->method->getEndLine()}</small>";
            }

            echo '</li>';
        }

        echo '</ul></li>';
    }
1267502
public static function Render($template=null, $data=null)
    {
        if ($template && $data) {
            return self::$renderer->render($template, $data);
        } else {
            self::$data = self::getData();
            self::$templates[] = "index";
            self::loadTemplate(self::$templates);
        }
    }
245360
private function renderPasteAfterButton(GetPasteButtonEvent $event)
    {
        if (null !== ($value = $event->getHtmlPasteAfter())) {
            return $value;
        }

        $label = $this->translate('pasteafter.0');
        if ($event->isPasteAfterDisabled()) {
            return $this->renderImageAsHtml('pasteafter_.svg', $label, 'class="blink"');
        }

        if ('pasteafter.1' !== ($opDesc = $this->translate('pasteafter.1'))) {
            $title = \sprintf($opDesc, $event->getModel()->getId());
        } else {
            $title = \sprintf('%s id %s', $label, $event->getModel()->getId());
        }

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $event->getHrefAfter(),
            StringUtil::specialchars($title),
            $this->renderImageAsHtml('pasteafter.svg', $label, 'class="blink"')
        );
    }
1347802
public function renderToolbar($event)
    {
        $this->initEnabled();

        if (!$this->enabled) {
            return;
        }

        $clientOptions = [
            'infoblockSettings'                => [
                'border' =>
                    [
                        'color' => $this->infoblockEditBorderColor,
                    ],
            ],
            'container-id'                     => 'sx-cms-toolbar',
            'container-min-id'                 => 'sx-cms-toolbar-min',
            'isOpen'                           => (bool)($this->isOpen == Cms::BOOL_Y),
            'backend-url-triggerEditWidgets'   => UrlHelper::construct('cms/toolbar/trigger-edit-widgets')->enableAdmin()->toString(),
            'backend-url-triggerEditViewFiles' => UrlHelper::construct('cms/toolbar/trigger-edit-view-files')->enableAdmin()->toString(),
            'backend-url-triggerIsOpen'        => UrlHelper::construct('cms/toolbar/trigger-is-open')->enableAdmin()->toString(),
        ];

        //echo '<div id="sx-cms-toolbar" style="display:none"></div>';

        /* @var $view View */
        $view = $event->sender;
        CmsToolbarAsset::register($view);

        if ($this->enableFancyboxWindow) {
            CmsToolbarFancyboxAsset::register($view);
        }

        echo $view->render('@skeeks/cms/toolbar/views/cms-toolbar', [
            'panels'        => $this->panels,
            'clientOptions' => $clientOptions,
        ]);
    }
969742
function renderItemsByFolderId(id) {
        resourceDetail.hide();
        resourcesList.show();
        folderId = id;
        urls["getResources"] = urls["getResources"] || getURL("getResources");
        var options = {
            url:urls["getResources"] + '/' + id,
            data:{mode:"exclusive", noClientScript:true},
            success:function (data) {
                resourcesList.html(data);
                var items = resourcesList.find("li");
                items.click(handleItemClick);
                _.each(items, function (item) {
                    attachMenu($(item));
                });

            }
        };
        Rocket.ajax(options);
    }
673075
protected function _renderDisplayView($options, $data = [], $returnRaw = false)
    {
        if (array_key_exists('repeated_view', $options) && $options['repeated_view']) {
            return $this->_renderRepeatedDisplayView($options, $data);
        } elseif ($displayView = $this->displayViewOptions($options)) {
            $viewData = [$this->_renderDataName => $data, 'data' => $data];
            $viewData = is_array($data) ? $data + $viewData : $viewData;
            return View::make($displayView, $viewData)->render();
        } elseif ($returnRaw) {
            return (string) $data;
        } else {
            return $this->_renderDisplayViewNotFoundError();
        }
    }
320424
protected function renderDataCellContent($row, $data)
    {
        /* @var $am CAuthManager|AuthBehavior */
        $am = Yii::app()->getAuthManager();

        if ($am->hasParent($this->itemName, $data['name'])) {
            echo TbHtml::linkButton(
                TbHtml::icon(TbHtml::ICON_REMOVE),
                array(
                    'color' => TbHtml::BUTTON_COLOR_LINK,
                    'size' => TbHtml::BUTTON_SIZE_MINI,
                    'url' => array('removeParent', 'itemName' => $this->itemName, 'parentName' => $data['name']),
                    'rel' => 'tooltip',
                    'title' => Yii::t('AuthModule.main', 'Remove'),
                )
            );
        } else {
            if ($am->hasChild($this->itemName, $data['name'])) {
                echo TbHtml::linkButton(
                    TbHtml::icon(TbHtml::ICON_REMOVE),
                    array(
                        'color' => TbHtml::BUTTON_COLOR_LINK,
                        'size' => TbHtml::BUTTON_SIZE_MINI,
                        'url' => array('removeChild', 'itemName' => $this->itemName, 'childName' => $data['name']),
                        'rel' => 'tooltip',
                        'title' => Yii::t('AuthModule.main', 'Remove'),
                    )
                );
            }
        }
    }
478041
public function beforeRender(Event $event)
    {
        $this->httpStatusCode = $this->response->getStatusCode();

        $messageArr = $this->response->withStatus($this->httpStatusCode);

        if (Configure::read('ApiRequest.debug') && isset($this->viewVars['error'])) {
            $this->apiResponse[$this->responseFormat['messageKey']] = $this->viewVars['error']->getMessage();
        } else {
            $this->apiResponse[$this->responseFormat['messageKey']] = !empty($messageArr[$this->httpStatusCode]) ? $messageArr[$this->httpStatusCode] : 'Unknown error!';
        }

        Configure::write('apiExceptionMessage', isset($this->viewVars['error']) ? $this->viewVars['error']->getMessage() : null);

        parent::beforeRender($event);

        $this->viewBuilder()->setClassName('RestApi.ApiError');

        return null;
    }
129809
@Override
	protected String renderList( Collection<String> listItems ) {

		StringBuilder sb = new StringBuilder();
		sb.append( "\n<ul>\n" );
		for( String s : listItems ) {
			sb.append( "\t<li>" );
			sb.append( s );
			sb.append( "</li>\n" );
		}

		sb.append( "</ul>\n\n" );
		return sb.toString();
	}
32762
public function getData(GetDataEvent $event)
    {
        $options = $event->getOptions() ? $event->getOptions() : [];
        $options['hiddenFilters']['moderation'] = false;

        if (DataSource::CONTEXT_WORKSPACE === $event->getContext()) {
            $options['hiddenFilters']['workspace'] = $event->getWorkspace()->getUuid();
        } elseif (DataSource::CONTEXT_HOME === $event->getContext()) {
            $options['hiddenFilters']['anonymous'] = true;
        }
        $event->setData(
            $this->finder->search(Message::class, $options)
        );

        $event->stopPropagation();
    }