Skip to content

v0.3.1

Compare
Choose a tag to compare
@kfranqueiro kfranqueiro released this 30 May 11:08
· 1408 commits to master since this release

Significant changes

  • Column plugins can now define the following functions on column definitions,
    providing more opportune timing for initialization and tear-down:
    • init, which will be executed at the time the grid's column configuration
      is (re-)applied
    • destroy, which will be executed when the grid is destroyed, as well as
      before a new column configuration is applied
  • The tree plugin now supports the following column definition properties:
    • shouldExpand(row, level, previouslyExpanded), a function providing for
      conditional automatic expansion of parent rows (#141)
    • indentWidth, an integer specifying the size (in pixels) of each level's
      indent (note that the default is now 9, though it was previously 19)
    • renderExpando(), a function which can replace the default logic for
      rendering the expando node (the arrow next to the content of each cell)
  • The editor plugin now augments the grid instance with an edit(cell) method
    which can be used to programmatically activate the editor in a given cell.
  • A util/mouse module has been added, which exposes simulated events for
    the mouse entering and leaving grid rows and cells. (#165)
  • A package.js has been added in order to streamline the build process.
    package.json has been updated to reflect the presence of package.js and
    reference the latest versions of xstyle and put-selector, each of which now
    have a package.js of their own.

Other Fixes

  • Mouse events for expanding/collapsing rows in tree grids should be a bit more
    reliable. (#112)
  • Rows expanded in a tree grid which has been started up but is currently hidden
    will now be rendered properly when re-shown. (#140)
  • The tree and editor plugins can now both be used on the same column, by
    wrapping editor with tree. (#144)
  • sortable now defaults to false for columns where field is "_item"
    or entirely unspecified (in which case there's nothing to sort by anyway).
    (#149)
  • The Pagination extension now behaves appropriately with empty result sets.
    (#173)
  • The ColumnHider extension now iterates over subRows rather than columns,
    making it a bit more reliable in general. (#164)
  • A couple of issues with the DijitRegistry extension were identified and
    fixed. (#146, thanks jdohert)