Skip to content

v2.0.0

Compare
Choose a tag to compare
@alexcjohnson alexcjohnson released this 02 May 18:13
2eb6882

The first full open-source release of Dash AG Grid!

Removed

  • Overhaul commit

    • Remove agGridColumns component due to deprecation in AG Grid v29, use columnDefs instead.
    • Remove some hardcoded CSS
  • #132 Remove prop autoSizeAllColumns, use the columnSize prop instead.

Added

  • Overhaul commit

    • 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 keep columnDefs from receiving possible updates to execute malicious JavaScript (originally called dangerously_allow_html but renamed later)
    • Add data_previous and data_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 allow rowData change detection
    • Add columnState prop to retrieve the current state of the columns after user interaction
  • #6

    • 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 to cellStyles
    • Add ability for custom parsing functions to be passed via the namespace window.dashAgGridFunctions
    • Allow for null to be passed to columnSize, to prevent the fit to width or autosize being the only options
  • #28

    • 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
  • #39

    • Allow for defaultColDef to be iterated through for functions
    • Add tooltipComponent to be altered if it was list as a function object
  • #49 Safely handle more attributes when dangerously_allow_code is disabled:

    • Top-level attributes rowClassRules, getRowStyle, and getRowClass
    • Column attributes cellClass, cellStyle, and cellClassRules
  • #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

  • #132

    • Add new columnSize option responsiveSizeToFit, which will adjust column sizes based upon grid size and columns added or removed
    • Add columnSizeOptions prop to modify the behavior chosen in columnSize
    • Add ability to push columnState back to grid and replay the settings
  • #145

    • Support alignedGrids
    • Support functions with tooltipComponentParams
    • Add paginationInfo for read-only info from the grid's pagination
    • Add paginationGoTo to navigate to different pages

-#164 Support passing selectedRows functions or ids for performing selections

Updated

  • Overhaul commit

    • 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
  • #39

    • Change selectionChanged to selectedRows to make props align with AG Grid
    • Allow selectedRows to persist
  • #70 Change clickData to cellRendererData to more closely line up with what this does

  • #81

    • 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 to cellClicked data
  • #132 Change columnSize option of autoSizeAll -> autoSize

  • #145 and #159 Update AG Grid 29.1.0 -> 29.3.3

  • #155

    • Update React to 18.2.0
    • Update material-ui to @mui for rowMenuRenderer

-#164 Update selectedRows to maintain persistence by utilizing rowIds if available

Fixed

  • Overhaul commit

    • 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

  • #19 Fixed cellClicked as reported in #17

  • #45 Fix #44, markdown ignoring target="_blank" to open links in a new tab. Now if dangerously_use_code is false, markdown cells honor columnDef.linkTarget, but if dangerously_use_code is true you MUST use the HTML syntax <a target="_blank"> to achieve this, markdown syntax [text](url) will ignore columnDef.linkTarget.

  • #47 Fix virtualRowData by setting the default rowModelType='clientSide'

  • #81 Fix syncing issue with rowData, virtualRowData when cell edits and async rowTransactions occur

  • #90 Fix columnState to be populated once gridReady

  • #92 Fix defaultStyle when no styleConditions is in cellStyle

  • #111 Fix templates to only populate when dangerously_allow_code=True

  • #132 Fix columnSize to update upon interaction

  • #145

    • Fix onRowDragEnd to trigger virtualRowData update
    • Fix all virtualRowData updates to take into account sorting
  • #155 and #158

    • Fix openGroups where clearing out the set would cause issues
    • Fix paginationGoTo to work with a starting page
  • #161 Fix the default style to be applied even when a style is given from the developer. style.height and style.width always exist but can be overridden if other values are provided in the style prop.

-#164

  • Fix comparator to not be restricted to just params
  • Fix paginationGoTo to allow 0 to be passed