A lightning fast JavaScript grid/spreadsheet
MIT License
Published by 6pac almost 6 years ago
Published by 6pac over 6 years ago
Published by 6pac over 6 years ago
Published by 6pac over 6 years ago
Major addition:
Minor enhancements:
Bug fixes:
Published by 6pac almost 7 years ago
Published by 6pac almost 7 years ago
Published by 6pac almost 7 years ago
Update version numbers
Published by 6pac almost 7 years ago
Published by 6pac about 7 years ago
Published by 6pac over 7 years ago
wiki improvements are on the way!
Published by 6pac over 7 years ago
Published by 6pac about 8 years ago
New features/improvements
Published by 6pac about 8 years ago
New features/improvements
enableAddRow
example4-model.html
modified to remove the slightly hackish: dataView.onPagingInfoChanged.subscribe(function (e, pagingInfo) {
var isLastPage = pagingInfo.pageNum == pagingInfo.totalPages - 1;
var enableAddRow = isLastPage || pagingInfo.pageSize == 0;
var options = grid.getOptions();
if (options.enableAddRow != enableAddRow) {
grid.setOptions({enableAddRow: enableAddRow});
}
});
and replace with
dataView.onPagingInfoChanged.subscribe(function (e, pagingInfo) {
grid.updatePagingStatusFromView( pagingInfo );
});
The grid now stores very minimal information about paging (and provides updatePagingStatusFromView to update it), so it can make decisions without having to turn the enableAddRow
option on and off while paging occurs. This breaks separation of concerns very slightly, but the original code is not only brute force, but also forces enableAddRow
to be true whenever paging is activated.
When updatePagingStatusFromView
is not used, then grid falls back to the previous behaviour (with the 'new row' bug fixed), so this is not a breaking change.
Published by 6pac about 8 years ago
New features/improvements