v0.3.6
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
andheaderKeyMap
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 viaKeyboard.defaultKeyMap
andkeyboard.defaultHeaderKeyMap
)
will be used. - Added
addKeyHandler(key, callback, isHeader)
method for registering
additional keyboard handlers; this is usually easier than trying to
overridekeyMap
orheaderKeyMap
.
- Added
- The
Keyboard
mixin no longer emitsdgrid-cellfocusout
and
dgrid-cellfocusin
when spacebar is pressed. (#429)
Column Plugins
- The
editor
column plugin now emitsdgrid-editor-show
anddgrid-editor-hide
events when an editor witheditOn
set is shown or hidden, respectively. (#424) - The
editor
column plugin now adds adgrid-cell-editing
class to any cell
containing an active editor. (#442; thanks Brandano for the idea)
Extensions
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 withwhen
, which
could inappropriately mutate the return value of_trackError
. (#411) - Fixed logic in
OnDemandList
so that asynchronous errors duringrefresh
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
usingvalueOf
. (#256, #304, #423) - The
tree
plugin has been refactored to make use of theutil/has-css3
module, rather than feature-detecting upon first expansion. (#416) - The
tree
plugin now implementsexpand
such that it will bail out if the
target row is already in the desired state.