Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onRendered not getting called #79

Open
MalithHatananchchige opened this issue May 24, 2017 · 1 comment
Open

onRendered not getting called #79

MalithHatananchchige opened this issue May 24, 2017 · 1 comment

Comments

@MalithHatananchchige
Copy link

Maybe I'm out of date but after updating from v1.1.x onRendered function does not get called. Im using flow-router with blaze-layout manager

FlowRouter.route('/', {
    action: function(params) {
	    BlazeLayout.render("_defaultLayout", {main: "dashboard"});
    }
});
Template._defaultLayout.onRendered(function () {
	var tpl = this;
	// tpl.$(".fooJqueryPlugin").initialise()
	//INIT PAGES : API CALLS
	console.log("helo");
	$.Pages.init();
	$('.dropdown-toggle').dropdown()
	//Pages Progress Bar API
	$('[data-pages-progress="circle"]').each(function() {
		var $progress = $(this);
		$progress.circularProgress($progress.data())
	});
});

The layout and router works just fine but no callback onRendered

@gibson
Copy link

gibson commented Jun 22, 2017

May be you need add onRendered handler to dashboard template for activate plugins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants