如何在闪电Salesforce中单击“完整日历”的上一步按钮时调用助手方法?

时间:2018-10-29 02:19:05

标签: salesforce-lightning

我正在使用外部js完整日历创建一个闪电页面。我想在单击“完整日历”的上一个/下一个按钮时调用辅助方法。我尝试使用下面的代码,但是我猜单击按钮时未进行呼叫。我已经在控制器中编写了此功能。难道我做错了什么?无法为外部js按钮单击编写自定义代码吗?

$('#fc-prev-button').click(function(component, event, helper) {
    alert("in here");
    $('#calendar').fullCalendar('prev');
    helper.getResponseMonthly();
})

;

0 个答案:

没有答案