Skip to content

v0.3.6

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

Breaking changes

OnDemandList's dgrid-refresh-complete event no longer includes rows

The rows property of this event was removed to match the implementation
added to the Pagination extension, which does not include it. If a particular
row is needed, it can be resolved from the QueryResults included on the event
via grid.row(...).element.

Significant changes

General/Core

  • Added an index page to the test folder to browse the tests via a grid. (#407)
  • Added a preliminary set of DOH tests to assist in spotting regressions. (#412)

Mixins

  • The Keyboard mixin has been made significantly more extensible (#429):
    • Added keyMap and headerKeyMap properties, which are object hashes
      whose keys are event key codes and whose values are functions to be
      executed in the context of the instance; if not specified, defaults
      (exposed via Keyboard.defaultKeyMap and keyboard.defaultHeaderKeyMap)
      will be used.
    • Added addKeyHandler(key, callback, isHeader) method for registering
      additional keyboard handlers; this is usually easier than trying to
      override keyMap or headerKeyMap.
  • The Keyboard mixin no longer emits dgrid-cellfocusout and
    dgrid-cellfocusin when spacebar is pressed. (#429)

Column Plugins

  • The editor column plugin now emits dgrid-editor-show and dgrid-editor-hide
    events when an editor with editOn set is shown or hidden, respectively. (#424)
  • The editor column plugin now adds a dgrid-cell-editing class to any cell
    containing an active editor. (#442; thanks Brandano for the idea)

Extensions

  • The Pagination extension now emits dgrid-refresh-complete like
    OnDemandList. (#188, #411)

Other changes and fixes

General/Core

  • Fixed Grid#styleColumn, which had broken in 0.3.5. (#408)
  • Fixed an issue with Grid#cell specific to when a cell object representing a
    header cell was passed in. (#429)
  • The Keyboard mixin now properly handles Home/End keypresses.
  • Fixed logic in _StoreMixin to work around a
    Dojo 1.8 bug with when, which
    could inappropriately mutate the return value of _trackError. (#411)
  • Fixed logic in OnDemandList so that asynchronous errors during refresh
    are properly signaled via the promise it returns. (#411)
  • Added CSS to ensure that IE6 renders empty OnDemandList preload nodes with
    0 height. (#429)

Column Plugins

  • The editor plugin now supports widgets returning object values by comparing
    using valueOf. (#256, #304, #423)
  • The tree plugin has been refactored to make use of the util/has-css3
    module, rather than feature-detecting upon first expansion. (#416)
  • The tree plugin now implements expand such that it will bail out if the
    target row is already in the desired state.