Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Synopsis
columnEnum.js
DataModel
instantiation option now accepts array<head>
sectionresizeColumnInPlace
(Issue Column resize behavior - resize only adjacent columns, not entire grid #749)editOnNextCell
feature (Issue Regression: editOnNextCell broken #745)1. Regression when no data rows (Issue #741)
Solution was to properly handle edge cases in
grid.renderer.paintGridLines
:2. Fix linter errors in
columnEnum.js
3. Avoid throwing error on a mouse event received before columns are created
This annoying error happened "sometimes" (when the mouse was moved over the grid) during reload.
4. Testbench demo: Restored regressed help tip "top-level global vars"
The commit for this is in the
build
repo.5.
DataModel
instantiation option now accepts arrayAs a convenience feature, when an array, instantiates a multi-stage data model as a data source stack. Each data source is instantiated in turn, passing the previous stack tip to the next constructor, forming a linked list. Each is data source module is a subclass of
datasaur-base
, which implements method inheritance on the stack.Previously: Single-stage data model
Alternatively, the following produces the same result:
Previously: Multi-stage data model
Now, with this enhancement: Multi-stage data model
The following is a short hand for the above
6. Remove finbars.css from
<head>
sectionThis stylesheet was being completely overridden by the duplicate in the
<body>
section (which remains).7. New column property:
resizeColumnInPlace
(Issue #749)Resizing a column through the UI (by clicking and dragging on the column's
right border in the column header row) normally affects the width of the whole grid.
Set this new property to truthy to inversely resize the next column.
In other words, if user expands (say) the third column, then the fourth column will contract —
and vice versa — without therefore affecting the width of the grid.
This is a column property and may be set for selected columns (
myColumn.properties.resizeColumnInPlace
)or for all columns by setting it at the grid level. (
myGrid.properties.resizeColumnInPlace
).Note that the implementation of this property does not allow expanding a
column beyond the width it can borrow from the next column.
The last column, however, is unconstrained and resizing it will affect the total grid width.
8. Fix
editOnNextCell
feature (Issue #745)Issue was new
cellEvent
failed to define itsgridCell.y
prop.9. Avoid throwing error when dragging a column and column(s) selected (Issue #751)
Fixed. This was due to improperly clearing existing selections in
SelectionModel.prototype.clear
.This commit also blocks dragging column on right-click.