Creating Chat of UI Complex Widgets, Chat Webix Docs
You can create Chat as a Webix view or as a standalone Jet app. Both ways will lead to the same result.
- Create Chat as a Webix view:
webix.ready(function() {
// use custom scrolls, optional
if (webix.env.mobile) webix.ui.fullScreen();
webix.CustomScroll.init();
webix.ui({
view: "chat",
token,
url: "https://docs.webix.com/chat-backend/",
});
});
Related sample: Chat: Webix View Initialization
- Initialize Chat as an instance of Jet app class and render it in the document body (or in any other HTML container):
webix.ready(function() {
// use custom scrolls, optional
if (webix.env.mobile) webix.ui.fullScreen();
webix.CustomScroll.init();
var app = new chat.App({
token,
url: "https://docs.webix.com/chat-backend/",
});
app.render(document.body);
});