Jquery HubSpot消息库关闭按钮单击
我正在使用显示消息 我使用了以下代码:Jquery HubSpot消息库关闭按钮单击,jquery,jquery-plugins,Jquery,Jquery Plugins,我正在使用显示消息 我使用了以下代码: var _notificatioMsg = "Message for display"; Messenger.options = { extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right', theme: 'air' } Messenger().post({ message: _notificatioMsg, type: "succes
var _notificatioMsg = "Message for display";
Messenger.options = {
extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',
theme: 'air'
}
Messenger().post({
message: _notificatioMsg,
type: "success",
showCloseButton: true,
hideAfter: false
});
当用户单击关闭按钮时,如何触发某些代码。我是否需要为关闭按钮编写Jquery
单击事件
我在消息库中找不到任何与关闭按钮事件相关的信息。如果需要自定义关闭操作,只需在post哈希中添加一个单击事件:
Messenger().post({
信息:_notificationsg,
键入:“成功”,
showCloseButton:正确,
隐藏者:假
活动:{
'click.messenger close':函数(){
//期望的事件
}
}
});代码>如果需要自定义关闭操作,只需在post哈希中添加一个单击事件:
Messenger().post({
信息:_notificationsg,
键入:“成功”,
showCloseButton:正确,
隐藏者:假
活动:{
'click.messenger close':函数(){
//期望的事件
}
}
});代码>