diff options
Diffstat (limited to 'src/view/sequencer')
-rw-r--r-- | src/view/sequencer/block.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/view/sequencer/block.ts b/src/view/sequencer/block.ts index 5776120..ff8d2db 100644 --- a/src/view/sequencer/block.ts +++ b/src/view/sequencer/block.ts @@ -5,7 +5,14 @@ interface Params { onCheck: (checked: boolean) => void } -export function view({ checked, onCheck }: Params) { +export function column(xs: Array<Params>) { + return h('ol', + { className: 'g-Sequencer__Column' }, + ...xs.map(params => h('li', {}, block(params))) + ) +} + +function block({ checked, onCheck }: Params) { return h('div', { className: classNames({ 'g-Sequencer__Block': true, |