Hypergrid v3.0.1
This patch release v3.0.1
supersedes v3.0.0
.
Synopsis
- Fix row header click regression
- Make deprecated
columnEnum
methods backwards compatible - New demo:
click-rect.html
clickRect
enhancements
1. Fix row header click regression
v3.0.0 threw an error when clicking in a row number cell. This has been fixed.
2. Make deprecated columnEnum
methods backwards compatible
Although behavior.columnEnum
and related methods and properties have been deprecated, and will issue a warning if used, they are still supposed to be fully functional. The version released in 3.0.0, however, was not true to the original implementation, returning the column objects rather than the column indexes (and therefore not an "enum" at all). This was the only issue preventing the v2.1.x
Dev Testbench demo from working with v3.0.x
. This has been fixed.
3. New demo: click-rect.html
Demonstrates the use of config.clickRect
and includes instructions and notes on the page and additional notes and alternate codings in the view source. (This demo is not dependent on the enhancements discussed below.)
4. clickRect
enhancements
clickRect
is now also a property — in addition to being settable by cell rendererclickRect
can now be a simple object{ x:number, y:number, width:number, height:number }
— as alternative to aRectangle
object- row selection now respects
clickRect
- add
hotIcon
property with possible values of'left'
,'center'
, or'right'
. Respected by theSimpleCell
cell renderer which, per value, automatically setsconfig.clickRect
to image rect specified inconfig.leftIcon
,config.centerIcon
, andconfig.rightIcon
, respectively. SimpleCell
now paints center icon on top of text (previously only painted it if no text)
Ignore commit "skip calls to canvas.paintNow during createColumns()"
This commit (eb54c56) was supposed to be reverted; it was not intended to be included in this release. It is ineffective in resolving errors that are thrown when the paint loop is stopped. Ignore. This will be reverted in 3.0.2
in favor of a more general solution to these issues.
Published to npm
This release has been published (as of 7/14/2018) as a module to the npm registry.
Pre-bundled build file
A bundled build of this release is available on the CDN.