onUserMentioned

fires when a user was mentioned in a comment

void onUserMentioned(string|number userId,string|number id);
userIdstring|numberthe user's ID
idstring|numberthe ID of the comment

Example

webix.ui({
    view:"comments", id:"uc",
    currentUser:4,
    data: "/server/comments_dara",
    users: "/server/comments_users",
    mentions:true,
    on:{
        onUserMentioned:function(userId, id){
            var user = this.getUsers().getItem(userId).value;
            webix.message(user+" was menioned in comment "+id);
        }
    }
});

Back to top