文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
方法函数
All At.js events are normal jQuery events. You can bind them in the jQuery way:
$inputor.on("matched.atwho", function(event, flag, query) { console.log(event, "matched " + flag + " and the result is " + query); });
If you have configured alias
setting, the event name would be added a suffix.
Suppose your alias
setting is at-mentions, so that the event name would be: matched-at-mentions.atwho
And, all event's context is the controller
object.
matched.atwho
Triggered after match a word. It would receive these arguments:
- event - jQuery Event : Just a jQuery Event|
- flag - String : the
at
char - query - String : Query String
inserted.atwho
Triggered after user choose a popup item in any way. It would receive these arguments:
- atwho event - jQueryEvent : Just a jQuery Event.
- $li - jQuery Object : List Item which have been chosen
- browser event - jQueryEvent : real browser event
reposition.atwho
Triggered after reposition popup . It would receive these arguments:
- event - jQueryEvent: Just a jQuery Event.
- offset - Hash : Offset after reposition.Used to .offset jQuery method, the structure looks like it:
{left:x, top: y}
beforeDestroy.atwho
Triggered before destroy plugin. There is no arguments for it.
shown.atwho
triggered after view shown
- event - jQueryEvent : Just a jQuery Event.
hidden.atwho
triggered after view hidden
- event - jQueryEvent : Just a jQuery Event.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论