Skip to content

Commit 92a9d3a

Browse files
author
Shashi Gowda
committed
collect data making showtable work for DTable
1 parent 4ff4ba5 commit 92a9d3a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/TableView.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ function showtable(t; rows=1:100)
88
"https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.css"])
99
data = Observable{Any}(w, "data", [])
1010

11-
subt = IndexedTable(keys(t)[rows], values(t)[rows])
11+
ks = keys(t)[rows]
12+
vs = values(t)[rows]
13+
14+
if !isa(keys(t), Columns)
15+
ks = collect(ks)
16+
vs = collect(vs)
17+
end
18+
19+
subt = IndexedTable(ks, vs)
1220

1321
headers = [fieldnames(eltype(keys(t))); fieldnames(eltype(t));]
1422
options = Dict(

0 commit comments

Comments
 (0)