This repository has been archived by the owner on Apr 2, 2019. It is now read-only.
Version 0.3.0
New
- Core
- PercentFormatter
- Formatters now accept an extra model parameter. (#263)
- Column
sortType
for using asc/dec/insertion-order 3-way sorting or asc/dec 2-way sorting. - Column
sortValue
for extracting value for sorting from the model, andeditable
,sortable
andrenderable
can now be functions. (#168, #219, #226) - The column's name is now added to the column header class list. (#214)
- Ability to put the grid in a default sorted state and sorting programmatically.
- The header can now be turned off.
- Easier override of
title
andtarget
for UriCell. (#242) SelectCell.optionValues
can now be a functionHeaderCell
will rerender is the column's name or label has changed.- Trigger
backgrid:next
when the user is trying to move focus of a cell out of bound. - CommonJS support.
- Official support for Bower and Component.
- SelectAll
- Toggles
selected
CSS class on the row. - Triggers
backgrid:select-all
on the collection when the select all checkbox is checked. Grid#clearSelectedModels
- Works with
Backbone.PageableCollection
under all modes now.
- Toggles
- Paginator
- Sliding window (cloudflarearchive/backgrid-paginator#2)
- Filter
- Much better looking styling, dropped IE8 support.
- Allow custom template to be supplied from the constructor
Changes
- Core:
- Replaced the
make
build system withGrunt
- Moved all extensions into their own repositories
- Much improved sorting. Sorting is now done in
Body
, where theHeaderCell
merely triggers the right events and set the CSS classes. (#282) HeaderCell
no longer renders a sort caret if the column is not sortable- Removed all cell side borders
- Center aligned column headers labels
- All formatters are now specified to the column definition or a Cell subclass as a class, so no more type inconsistencies.
- Sorting can be triggered by clicking anywhere on a HeaderCell
emptyText
can now be a function. (#332)SelectCell
will now save the select value under all circumstances.- Requires Underscore ~1.5.2 and Backbone ~1.1.0.
- Replaced the
- Select2Cell
- Requires select2 3.4.5.
- MomentCell
- Requires moment 2.1.0+.
- TextCell
- Requires Bootstrap 3.0.0+.
- Filter
- Removed dependency on Bootstrap.
- Works backbone-pageable 1.4.4.
- Use data attributes for event handler binding.
- Show the clear button only when the search box is filled.
- More flexible default work breaking Regexp for the ClientSideFilter to work for more langauges.
- Paginator
- The way to disable page handles and controls have been changed. Please read the docs for details.
Bug fixes
- Core
- Fixed a number of errors resulted from moving focus to a different cell (#169, #177)
- Fixed cell padding for IE
- Fixed a JS error in IE8 in the
Command
class where thechar
reserved keyword was used (#195) - Fixed a number of CSS inconsistencies for multiple select for IE (#210, #258)
- Correctly throw exceptions for optionValues inside SelectCell. (#274)
- The checkbox of a BooleanCell is no longer checkable when its column's
editable
attribute isfalse
. (#322) - Template variables no longer clash with global variables.
- Unstyle IE 10 remove buttons on input boxes.
- SelectAll
- Filter
- Fixed issue where
lunr.js
is required even if LunrFilter is not used (#200) - No more RangeErrors when using Filter with Pageable and backgrid-paginator.
- Clicking on a cell after filtering no longer fails. (#190)
- Paging after filtering will no longer reset the collection. (#194)
- Reset collection when the LunrFilter's search box is empty. (cloudflarearchive/backgrid-filter#10)
- Go back to the first page when on new search
- Fixed issue where
- Paginator
- Many many bug fixes. This is basically a complete rewrite that's functionally on par with previous versions.
- Select2Cell
- Fixed many focus and CSS issues.
- TextCell
- Upgraded template and event handlers to support Bootstrap 3.