Skip to content

Commit a3c2d4c

Browse files
author
Shashi Gowda
committed
check-in subtable method
1 parent 5a3538a commit a3c2d4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TableView.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ using JuliaDB
55

66
import JuliaDB: DNDSparse, DNextTable, NextTable
77

8+
function JuliaDB.subtable(t::DNextTable, r)
9+
table(collect(rows(t)[r]), pkey=t.pkey)
10+
end
11+
812
function showtable(t::Union{DNextTable, NextTable}; rows=1:100, colopts=Dict(), kwargs...)
913
w = Widget(dependencies=["https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.js",
1014
"https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.css"])

0 commit comments

Comments
 (0)