File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module TableView
3
3
using WebIO
4
4
using IndexedTables
5
5
6
- function showtable (t; rows= 1 : 100 )
6
+ function showtable (t; rows= 1 : 100 , kwargs ... )
7
7
w = Widget (dependencies= [" https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.js" ,
8
8
" https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.34.0/handsontable.full.css" ])
9
9
data = Observable {Any} (w, " data" , [])
@@ -27,9 +27,12 @@ function showtable(t; rows=1:100)
27
27
:modifyRowHeight => @js (h -> h > 60 ? 50 : h),
28
28
:manualColumnResize => true ,
29
29
:manualRowResize => true ,
30
- :width => 800 ,
31
- :height => 400
30
+ :width => 800 ,
31
+ :height => 400 ,
32
32
)
33
+
34
+ merge! (options, Dict (kwargs))
35
+
33
36
handler = @js function (Handsontable)
34
37
@var sizefix = document. createElement (" style" );
35
38
sizefix. textContent = """
You can’t perform that action at this time.
0 commit comments