Hello,
I would like to use the Loading comments on demand with the Chat widget.
I try to make a custom view like this :
class CustomMessages extends chat.views["messages"] {
config() {
const ui = super.config();
ui.rows[1].mode = "chat";
ui.rows[1].onClick = {
"webix_comments_more": () => {console.log('clic more');}
};
return ui;
}
}
The chat mode works correctly
ui.rows[1].mode = "chat";
But the on Click doesn’t…
ui.rows[1].onClick = {
"webix_comments_more": () => {console.log('clic more');}
};
Any idea how I can override the onClick on the “More comments” button ?
Thanks in advance,