Skip to content

Commit 9852b95

Browse files
author
Shashi Gowda
committed
pass on kwargs as options to HoT
1 parent 92a9d3a commit 9852b95

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/TableView.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module TableView
33
using WebIO
44
using IndexedTables
55

6-
function showtable(t; rows=1:100)
6+
function showtable(t; rows=1:100, kwargs...)
77
w = Widget(dependencies=["https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.js",
88
"https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.css"])
99
data = Observable{Any}(w, "data", [])
@@ -27,9 +27,12 @@ function showtable(t; rows=1:100)
2727
:modifyRowHeight => @js(h -> h > 60 ? 50 : h),
2828
:manualColumnResize => true,
2929
:manualRowResize => true,
30-
:width =>800,
31-
:height =>400
30+
:width => 800,
31+
:height => 400,
3232
)
33+
34+
merge!(options, Dict(kwargs))
35+
3336
handler = @js function (Handsontable)
3437
@var sizefix = document.createElement("style");
3538
sizefix.textContent = """

0 commit comments

Comments
 (0)