How to use the framework/ViewRenderer.renderHTML function in framework

To help you get started, we’ve selected a few framework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / CollectionFiltersViewController.js View on Github external
_updateBreadcrumbs: function() {
            var activeFilters = this._getActiveFilters();

            // formulate data to pass to renderer
            var renderData = {
                totalCount: this._state.totalCount,
                activeFilters: activeFilters
            };

            viewRenderer.renderHTML(this._references.$filterBreadcrumbsContainer, collectionFilterBreadcrumbsTemplate, renderData);
        },
github digitalgreenorg / dg / media / social_website / scripts / app / view-controllers / CollectionFiltersViewController.js View on Github external
_updateBreadcrumbs: function() {
            var activeFilters = this._getActiveFilters();

            // formulate data to pass to renderer
            var renderData = {
                totalCount: this._state.totalCount,
                activeFilters: activeFilters
            };

            viewRenderer.renderHTML(this._references.$filterBreadcrumbsContainer, collectionFilterBreadcrumbsTemplate, renderData);
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / SearchViewController.js View on Github external
_renderSearchItems: function(renderData) {
            viewRenderer.renderHTML(this._references.$searchItemsContainer, searchCompletionTemplate, renderData);
        },
github digitalgreenorg / dg / dg / media / social_website / build / app / view-controllers / SearchViewController.js View on Github external
_renderSearchItems: function(renderData) {
            viewRenderer.renderHTML(this._references.$searchItemsContainer, searchCompletionTemplate, renderData);
        },
github digitalgreenorg / dg / media / social_website / scripts / app / view-controllers / CollectionFiltersViewController.js View on Github external
_renderFilters: function() {
            var filterDataForRender = this._getFilterDataForRender();
            viewRenderer.renderHTML(this._references.$filtersContainer, collectionFilterListTemplate, filterDataForRender);
        },
github digitalgreenorg / dg / media / social_website / scripts / app / view-controllers / SearchViewController.js View on Github external
_renderSearchItems: function(renderData) {
            viewRenderer.renderHTML(this._references.$searchItemsContainer, searchCompletionTemplate, renderData);
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / CollectionFiltersViewController.js View on Github external
_renderFilters: function() {
            var filterDataForRender = this._getFilterDataForRender();
            viewRenderer.renderHTML(this._references.$filtersContainer, collectionFilterListTemplate, filterDataForRender);
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / CommentsFeedViewController.js View on Github external
currentCommentsItemData._replied = true;
                    }

                    currentReply._formattedLikedCount = Util.integerCommaFormat(currentReply.likedCount);
                    currentReply._likesPlural = currentReply.likedCount != 1;
                }
                */

                renderCommentsArray.push(currentCommentsItemData);
            }

            var renderData = {
                comments: renderCommentsArray
            };
            if (addedComment){
                viewRenderer.renderHTML(this._references.$commentsList, commentTemplate, renderData);
            }
            else {
                viewRenderer.renderAppend(this._references.$commentsList, commentTemplate, renderData);
            }
        },