rename demo example into benchmarks

This commit is contained in:
Géry Debongnie
2019-03-19 13:55:27 +01:00
parent 91e7e00f97
commit 6a2e4dbf2f
8 changed files with 6 additions and 6 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Counter } from "./counter.js";
export class Message extends odoo.core.Component {
inlineTemplate = `
<div class="message">
<span class="author"><t t-esc="props.author"/></span>
<span class="msg"><t t-esc="props.msg"/></span>
<button class="remove" t-on-click="removeMessage">Remove</button>
<t t-widget="Counter" t-props="{initialState: props.id}"/>
</div>`;
constructor(parent, props) {
super(parent, props);
this.widgets = { Counter };
}
removeMessage() {
this.trigger("remove_message", {
id: this.props.id
});
}
}