Skip to content

Commit 2d6b67f

Browse files
set observable table view layout, width and height options (#12)
1 parent 4542bd8 commit 2d6b67f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/client/render.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ interface IRenderInfo {
1010

1111
export function render({container, mime, value}: IRenderInfo) {
1212
const data = value.data ? value.data: value;
13-
const table = inputs.table(data);
13+
const table = inputs.table(data, {
14+
layout: 'auto',
15+
width: 'auto',
16+
height: 360
17+
});
1418
console.log(`data.table: mime-type=${mime}`);
1519
container.appendChild(table);
1620
}

src/client/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
table {
1+
.data-table {
22
font-family: Menlo, Monaco, "Courier New", monospace;
33
max-height: 20em;
44
max-width: 100%;

0 commit comments

Comments
 (0)