Commit 422799f1 authored by rdoerge's avatar rdoerge Committed by Hermann
Browse files

Possibilties to add buttons added.

parent 5e20165a
......@@ -50,7 +50,7 @@ export default class ItemView {
});
}
layout(children) {
layout(children, buttons = []) {
if (!this.controller || !this.controller.data) return m(loadingScreen);
return m('div', [
m(Toolbar, m('div.pe-button-row', [
......@@ -66,6 +66,7 @@ export default class ItemView {
border: true,
events: { onclick: () => this.delete() },
}),
...buttons,
])),
m('div', {
style: { height: 'calc(100vh - 130px)', 'overflow-y': 'scroll' },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment