@@ -199,12 +199,16 @@ end
199199
200200function _showtable_sync! (w, schema, names, types, rows, coldefs, tablelength, id, options)
201201 options[:rowData ] = JSONText (table2json (schema, rows, types))
202+ license = get (ENV , " AG_GRID_LICENSE_KEY" , nothing )
202203 handler = @js function (RowNumberRenderer, agGrid)
203204 @var gridOptions = $ options
204205 @var el = document. getElementById ($ id)
205206 gridOptions. components = Dict (
206207 " rowNumberRenderer" => RowNumberRenderer
207208 )
209+ if $ (license != = nothing )
210+ agGrid. LicenseManager. setLicenseKey ($ license)
211+ end
208212 this. table = @new agGrid. Grid (el, gridOptions)
209213 gridOptions. columnApi. autoSizeAllColumns ()
210214 end
@@ -236,6 +240,7 @@ function _showtable_async!(w, schema, names, types, rows, coldefs, tablelength,
236240 ,
237241 " rowCount" => tablelength
238242 )
243+ license = get (ENV , " AG_GRID_LICENSE_KEY" , nothing )
239244
240245 handler = @js function (RowNumberRenderer, agGrid)
241246 @var gridOptions = $ options
@@ -244,6 +249,9 @@ function _showtable_async!(w, schema, names, types, rows, coldefs, tablelength,
244249 gridOptions. components = Dict (
245250 " rowNumberRenderer" => RowNumberRenderer
246251 )
252+ if $ (license != = nothing )
253+ agGrid. LicenseManager. setLicenseKey ($ license)
254+ end
247255 this. table = @new agGrid. Grid (el, gridOptions)
248256 gridOptions. columnApi. autoSizeAllColumns ()
249257 end
0 commit comments