bootstrap-calendar
bootstrap-calendar copied to clipboard
Custom variables for templates
Hi together,
it is possible to pass custom variables/ strings to the templates that are not in the events array?
Yep. Try something like that:
var calendar = $('#calendar').calendar({
tmpl_path: "/js/tmpls/",
events_source: function() {return [];},
custom: {
test: 1
}
});
And now you could use (in the template):
<% console.log(cal.options.custom); %>