mami/src/mami.js/ui/chat-interface.js

31 lines
600 B
JavaScript

#include utility.js
#include ui/chat-message-list.js
#include ui/chat-input.js
Umi.UI.ChatInterface = function() {
const messages = new Umi.UI.ChatMessageList,
input = new Umi.UI.ChatInput;
const html = $e({
attrs: {
className: 'main',
},
child: [
messages,
input,
],
});
return {
getMessageList: function() {
return messages;
},
getInput: function() {
return input;
},
getElement: function() {
return html;
},
};
};