Open thearabbit opened 8 years ago
you dont need to set body as template - create empty html file and write
<body class="hold-transition skin-blue sidebar-mini"></body>
and
Add following code inside on the top of one of your client side JS file:
BlazeLayout.setRoot('body');
Thanks for your reply, but I would like to add some class="hold-transition skin-blue sidebar-mini"
to the body
.
How to...?
This worked for me:
Template.myTemplate.onRendered(function() {
$('body').addClass('hold-transition skin-blue sidebar-mini')
})
Now it work fine, but have problem with event click on Navigation Bar
.
How to attach event?
Uh... I use Blazejs for my templates - not sure what you're using... here's the doc: http://blazejs.org/api/templates.html#Event-Maps
Templates.MyTemplate.events({
'click .navbar'(event) { ... }
})
On Fri, Dec 16, 2016 at 5:50 PM, Yuom Theara notifications@github.com wrote:
Now it work fine, but have problem with event click on Navigation Bar. How to attach event?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kadirahq/blaze-layout/issues/66#issuecomment-267730515, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXWhcYl8BQq8huJlGAed6lwUvG2rNewks5rIzHdgaJpZM4HuuzP .
I would like to add
<body class="hold-transition skin-blue sidebar-mini">
, but don't work withblaze layout
.Please help me.