How to use the framework/ViewRenderer.renderAppend 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 / build / app / view-controllers / PartnerFarmersViewController.js View on Github external
var partnerFarmersRenderArray = [];

            var i = 0;
            var len = partnerFarmersArray.length;
            for (; i < len; i++) {
                var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
                partnerFarmersRenderArray.push(currentPartnerFarmerData);
            }

            this._references.$farmerPagesContainer.empty();

            var renderData = {
                farmers: partnerFarmersArray
            };

            viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
        },
github digitalgreenorg / 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
            };

            viewRenderer.renderAppend(this._references.$commentsList, commentTemplate, renderData);
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / CommentsFeedViewController.js View on Github external
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);
            }
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / profile / ActivitiesViewController.js View on Github external
_renderActivities: function(activitiesData) {

            var renderData = {
                activities: activitiesData
            };

            viewRenderer.renderAppend(this._references.$activitiesContainer, activityTemplate, renderData);

            this._initCarousels();
            stButtons.locateElements();
        },
github digitalgreenorg / dg / media / social_website / scripts / app / view-controllers / PartnerFarmersViewController.js View on Github external
var partnerFarmersRenderArray = [];

            var i = 0;
            var len = partnerFarmersArray.length;
            for (; i < len; i++) {
                var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
                partnerFarmersRenderArray.push(currentPartnerFarmerData);
            }

            this._references.$farmerPagesContainer.empty();

            var renderData = {
                farmers: partnerFarmersArray
            };

            viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / news / NewsFeedViewController.js View on Github external
_renderNewsItems: function(activitiesData) {

            var renderData = {
                activities: activitiesData
            };

            viewRenderer.renderAppend(this._references.$newsItemsContainer, newsItemTemplate, renderData);

            this._initCarousels();

        },
github digitalgreenorg / dg / dg / media / social_website / scripts / app / view-controllers / PartnerFarmersViewController.js View on Github external
var partnerFarmersRenderArray = [];

            var i = 0;
            var len = partnerFarmersArray.length;
            for (; i < len; i++) {
                var currentPartnerFarmerData = Util.Object.clone(partnerFarmersArray[i], true);
                partnerFarmersRenderArray.push(currentPartnerFarmerData);
            }

            this._references.$farmerPagesContainer.empty();

            var renderData = {
                farmers: partnerFarmersArray
            };

            viewRenderer.renderAppend(this._references.$farmerPagesContainer, partnerFarmerTemplate, renderData);
        },
github digitalgreenorg / dg / media / social_website / scripts / app / view-controllers / news / NewsFeedViewController.js View on Github external
_renderNewsItems: function(activitiesData) {

            var renderData = {
                activities: activitiesData
            };

            viewRenderer.renderAppend(this._references.$newsItemsContainer, newsItemTemplate, renderData);

            this._initCarousels();

        },