React Toolbox depends on React with Addons, so, to be able to use it, you not only have to depend in cljsjs/ag-grid-community:
[cljsjs/ag-grid-community "25.0.1-1"] ;; latest release
This jar comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like:
(ns application.core
(:require [cljsjs.ag-grid]))
When upgrading ag-grid, you need to regenerate the externs:
- Go to https://cdnjs.com/libraries/ag-grid/ such as https://cdnjs.com/libraries/ag-grid-community/10.0.1
- Find the URL for ag-grid.js, such as: https://cdnjs.cloudflare.com/ajax/libs/ag-grid/8.2.0/ag-grid.js or https://unpkg.com/[email protected]/dist/ag-grid-community.js
- Go to http://jmmk.github.io/javascript-externs-generator
- Paste the URL for ag-grid.js and click load.
- Name the JavaScript object agGrid.
- Click "Extern!"
- Copy the JavaScript value to resources/cljsjs/ag-grid-community/common/ag-grid-community.ext.js