Hypergrid 1.3
Hypergrid Module
ClearState Resets griid.properties on initialization. Non internal listeners get cleared on reset
setData will reshape the grid if a new schema is passed, or one wasn’t and it doesn’t have any cached (in which case, it will derive a schema). If setData is called with just data and a schema is already available the grid without changing column definitions
Parameter change: setHoverCell(point) -> setHoverCell(cellEvent)
Parameter change: editPoint(editPoint) -> editPoint(cellEvent)
New Method windowOpen, getColumns, setInfo, getActiveColumns. clearAllCellProperties, getController, setController, prop
New Getter charMap
Deprecated isRowResizable in favor of properties.rowResize
Deprecated isCheckBoxOnlyRowSelections in favor of properties.checkboxOnlyRowSelections
Deprecated showFilterRow in favor of properties.showFilterRow
Deprecated isRowNumberAutosizing in favor of properties.isRowNumberAutosizing
Deprecated updateData in favor of setData without a schema definition
Deprecated getCanvas
Deprecated useHiDPI in favor of properties.useHiDPI
Deprecated isHeaderWrapping
Deprecated isColumnAutosizing
Removed getters and settters for .sorter and .filter in favor get and setController
Hypergrid’s data model filter
and sorter
properties have been “generacized” (generalized) and are now called “data controllers.”
For example, suppose you have some filter and sorter controllers. The hyper-filter and hyper-sorter plugins are still part of the Hypergrid build (these will be liberated eventually):
<script src="build/add-ons/hyper-filter.js"></script>
<script src="build/add-ons/hyper-sorter.js"></script>
1. Base.notify allows you to throw a console warning, alert or create a Hypergrid error cell
The fin canvas module has been folded into the core of the grid. We will no longer maintain fincanvas
```javascript
grid.filter = grid.behavior.plugins.hyperfilter.create(schema);
grid.sorter = grid.behavior.plugins.hypersorter;
New way (v1.3)
grid.setController(‘filter’, filter);
grid.setController(‘sorter’, sorter);
Removed dialogOptions, setDialogOptions, openDialog, toggleDialog
EVENT MODULE
-
The event.detail for these events (and others?) is now a cellEvent:
fin-cell-enter
Fin-cell-exit -
renamed: cellEvent.row -> .dataRow