Releases: plotly/dash-ag-grid
v31.2.0
Changed
- #273 increased the timeout for
getApiAsync
to 2 minutes. by @AnnMarieW - #281 webpack is now designed to build quicker, excludes
node_modules
and uses a different parser by @BSd3v - #287 bumping to v
31.2.1
for the grid by @BSd3v
Added
- #270 by @BSd3v
- support for
eventListeners
to be added to the grid that get loaded upongridReady
eventListeners
are added upongridReady
only, if you need to add or remove other event listeners, please use thegetApi
orgetApiAsync
methods- added default for
selectedRows
to be[]
- support for
Fixed
- #283/#290 by @BSd3v
- #293 by @BSd3v
aggFuncs
can now be passes as an object from the grid to be mapped to functions- fixes #278
CI
- #288 update requirements files location by @ndrezn
- #291 automate release generation by @ndrezn
- #289 migrate to Github Actions rather than CircleCI by @ndrezn
New Contributors
Full Changelog: v31.0.1...v31.2.0
v31.0.1
v31.0.0
Added
- #246
grid_version
added to allow developer to see underlying AG Grid version in python- Added
quartz
theme native support - Added function support for
dateParser
,dateFormatter
,quickFilterParser
,components
,quickFilterMatcher
,predicate
,textFormatter
,textMatcher
,numberFormatter
,numberParser
,dataTypeMatcher
Removed
- #246 dropped
getColumnApi
andgetColmunApiAsync
as these are deprecated from the underlying grid.
Changed
- #261 The
cellValueChanged
property has changed been changed from a (single) event object to a list of event objects. For multi-cell edits, the list will contain an element per change. In other cases, the list will contain a single element. Fixes #262 - #246
- updating underlying grid version from AG Grid v29 -> v31, with this change, Dash AG Grid will reflect a similar version number to underlying Grid version.
dataTypeDefinitions
now supports full js, partial python with full definitions in js of an object, and objects have parts that are jscolumnSize
andcolumnState
cannot be currently passed together when grid initializes, thecolumnSize
will trump thecolumnState
Fixed
- #246 testing for grid going to destroyed state
v2.4.0
Added
- #243 Added function support for:
getContextMenuItems
,isRowMaster
,setPopupParent
,popupParent
,filter
- iterate through
csvExportParams
anddefaultCsvExportParams
for functions:getCustomContextBelowRow
,shouldRowBeSkipped
,processCellCallback
,processHeaderCallback
,processGroupHeaderCallback
,processRowGroupCallback
Fixed
v2.3.0
v2.2.0
Added
- #199 Add
scrollTo
prop which allows scrolling to rows and columns. - #209 Add
getApi
andgetColumnApi
todash_ag_grid
namespace to allow for JS functions to call the grid's API directly
Fixed
- 210 Fix issue with
columnState
and React 18
Updated
- 210 Migrate props that use
setProps
from therender()
tocomponentDidUpdate
v2.1.0
Added
- #201 Add
cellDoubleClicked
prop, which works exactly likecellClicked
Updated
-
columnState
floats during grid interaction and only gets pushed when sent in a callbackcolumnDefs
trumpscolumnState
if it is pushed in a callback without acolumnState
-
#207 Update AG Grid from 29.3.3 to 29.3.5, with a few minor bugfixes, see their changelog for 29.3.4 and 29.3.5. Also other minor dependency updates.
Fixed
-
#174 Fix #171:
Markdown
renderer now displays a blank cell rather than writingundefined
if there is no value -
#204
filterOptions
will now work as a regular object -
#206 Fix #195 where if the user was to redo the exact same action, callbacks on
cellValueChanged
would not trigger again. Fix by addingtimestamp
into the object, as we have in other event-type props to make them unique.
v2.0.0
The first full open-source release of Dash AG Grid!
Removed
-
- Remove
agGridColumns
component due to deprecation in AG Grid v29, usecolumnDefs
instead. - Remove some hardcoded CSS
- Remove
-
#132 Remove prop
autoSizeAllColumns
, use thecolumnSize
prop instead.
Added
-
- Add
className
prop for css customization native to AG Grid - Add
enable*
props for easier user / dash manipulation, for creating buttons - Add overarching
dangerously_allow_code
prop to grid props only provided at render, to keepcolumnDefs
from receiving possible updates to execute malicious JavaScript (originally calleddangerously_allow_html
but renamed later) - Add
data_previous
anddata_previous_timestamp
props to allow easier change tracking in callbacks - Add
dashGridOptions
prop to allow for arbitrary use of AG Grid props not explicitly listed - Add
setRowId
prop to allowrowData
change detection - Add
columnState
prop to retrieve the current state of the columns after user interaction
- Add
-
- Allow strings of functions to be passed as parameters to
valueGetterFunction
,valueFormatterFunction
. This allows for functions to be parsed even in a strict CSP environment. - Add row conditional formatting via
getRowStyle
, acts similar tocellStyles
- Add ability for custom parsing functions to be passed via the namespace
window.dashAgGridFunctions
- Allow for
null
to be passed tocolumnSize
, to prevent the fit to width or autosize being the only options
- Allow strings of functions to be passed as parameters to
-
- Allow for other column prop functions to pass without disabling them if
dangerously_allow_code
is not passed - Copy over
columnDef
dangerously_allow_code
to allow for the prop to be placed only on the grid level - Keep
params
together instead of splitting into separate keys, to allow for easier transition to using AG Grid docs
- Allow for other column prop functions to pass without disabling them if
-
- Allow for
defaultColDef
to be iterated through for functions - Add
tooltipComponent
to be altered if it was list as a function object
- Allow for
-
#49 Safely handle more attributes when
dangerously_allow_code
is disabled:- Top-level attributes
rowClassRules
,getRowStyle
, andgetRowClass
- Column attributes
cellClass
,cellStyle
, andcellClassRules
- Top-level attributes
-
#67 Function parsing recursive columnDefs
- Add more functions to be available for parsing
- Allow for recursively going through
columnDefs
->children
and master detail info
-
#76 Add logging function available by default, available via
{"function": "log()"}
-
#111 Add
filterModel
prop in order to capture the grid's active filters -
- Add new
columnSize
optionresponsiveSizeToFit
, which will adjust column sizes based upon grid size and columns added or removed - Add
columnSizeOptions
prop to modify the behavior chosen incolumnSize
- Add ability to push
columnState
back to grid and replay the settings
- Add new
-
- Support
alignedGrids
- Support functions with
tooltipComponentParams
- Add
paginationInfo
for read-only info from the grid's pagination - Add
paginationGoTo
to navigate to different pages
- Support
-#164 Support passing selectedRows
functions or ids for performing selections
Updated
-
- Update AG Grid from v27.x to v29.x - see AG Grid Changelog for details.
- Update markdown renderer to use github markdown, and also have the ability to be passed a target for links, to avoid
dangerously_allow_code
- Update
requirements.txt
(Python dependencies for demos and docs) to allow the latest packages
-
- Change
selectionChanged
toselectedRows
to make props align with AG Grid - Allow
selectedRows
to persist
- Change
-
#70 Change
clickData
tocellRendererData
to more closely line up with what this does -
- Prop clean-up overhaul
- Remove
cellStyle
from the grid level, allowing more flexibility in customization, and alignment with AG grid - Allow for functions, styleConditions and regular dictionaries to be passed to the
cellStyle
on all levels - Add
rowId
tocellClicked
data
-
#132 Change
columnSize
option ofautoSizeAll
->autoSize
-
- Update React to
18.2.0
- Update
material-ui
to@mui
forrowMenuRenderer
- Update React to
-#164 Update selectedRows
to maintain persistence by utilizing rowIds
if available
Fixed
-
- Fix conditional formatting for nested columns
- Fix issue where columns would not take edits or adjustments due to becoming static
-
#6 Fix props issue for
enableAddRows
-
#45 Fix #44, markdown ignoring
target="_blank"
to open links in a new tab. Now ifdangerously_use_code
isfalse
, markdown cells honorcolumnDef.linkTarget
, but ifdangerously_use_code
istrue
you MUST use the HTML syntax<a target="_blank">
to achieve this, markdown syntax[text](url)
will ignorecolumnDef.linkTarget
. -
#47 Fix
virtualRowData
by setting the defaultrowModelType='clientSide'
-
#81 Fix syncing issue with
rowData
,virtualRowData
when cell edits and asyncrowTransactions
occur -
#90 Fix
columnState
to be populated oncegridReady
-
#92 Fix
defaultStyle
when nostyleConditions
is incellStyle
-
#111 Fix templates to only populate when
dangerously_allow_code=True
-
#132 Fix
columnSize
to update upon interaction -
- Fix
onRowDragEnd
to triggervirtualRowData
update - Fix all
virtualRowData
updates to take into account sorting
- Fix
-
- Fix
openGroups
where clearing out the set would cause issues - Fix
paginationGoTo
to work with a starting page
- Fix
-
#161 Fix the default style to be applied even when a style is given from the developer.
style.height
andstyle.width
always exist but can be overridden if other values are provided in thestyle
prop.
-#164
- Fix
comparator
to not be restricted to just params - Fix
paginationGoTo
to allow0
to be passed
v2.0.0rc2
2nd release candidate for v2.0.0
v2.0.0rc1
First release candidate for v2.0.0