Skip to content

Commit a7219f9

Browse files
authored
Merge pull request #75 from galran/master
Added a user call back function to allow settings modifications
2 parents 7b0a13e + aec86f6 commit a7219f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TableView.jl

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ function showtable(table, options::Dict{Symbol, Any} = Dict{Symbol, Any}();
190190
)
191191
)
192192

193+
# allow a user to modify some of the table settings using a call back function supplied in the options argument
194+
# we need to remove the callback function key from options as it cause the JS serilization process to fail
195+
haskey(options, :userCallbackFunc) && ((options[:userCallbackFunc])(options) ; delete!(options, :userCallbackFunc))
196+
193197
showfun = async ? _showtable_async! : _showtable_sync!
194198

195199
showfun(w, schema, names, types, rows, coldefs, tablelength, id, options)

0 commit comments

Comments
 (0)