I have this code in component helper:
func1:function (component){
var element = component.find("calendar").getElement();
$(element).fullCalendar({
views: {
year: { // name of view
columnFormat: 'MMM'
// other view-specific options here
}
},
header: {
left: 'prev,next today',
center: 'title',
right: 'year,month,basicWeek,basicDay'
},
events: data,
viewRender: function(view){
console.log("**** "+view.name);
this.func2(component);
}
)}
},
func2:function(component){
.
.
}
but it display an error indicate that func2
is not defined
so how can I call helper function from inner functions?