Materialize CSS sidenav with Meteor


How do I use the Materialize CSS sidenav with Meteor? When calling $().sidenav() at Template.onRender, the sidenav does not work.

I am using cordova with android/ios.


You should be able to call it with the where .className is the class for the button that is controlling your side navigation.


<template name="templateName">
 <a href="#" data-activates="slide-out" class="className"><i class="mdi-navigation-menu"></i></a>


Template.templateName.onRendered(function () {
    closeOnClick: true