highlight

defines the style for mentioning

boolean|string highlight;

Values

  • true
  • false
  • "users"
  • Example

    {
        view:"comments",
        currentUser:4,
        data: mentionedData,
        users: usersData,
        highlight:"users",
        mentions:true,
        on:{
            onUserMentioned:function(userId, id){
                var user = this.getUsers().getItem(userId).value;
                webix.message(user+" was mentioned in comment "+id);
            } 
        }
    }


    Default value:

    true
    Details
    • true - enable highlighting of the mentioning;
    • false - disable highlighting of the mentioning;
    • "users" - enable highlighting of the mentioning only for defined users.
    Back to top