| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
for all example pages in github pages
|
|
|
|
| |
(#520).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New events:
+ onBeforeHeaderRowCellDestroy
+ onHeaderRowCellRendered
Renamed events:
onHeaderRendered -> onHeaderCellRendered
onBeforeHeaderDestroy -> onBeforeHeaderCellDestroy
New methods:
- setTopPanelVisibility
- setHeaderRowVisibility
Removed methods:
- showTopPanel
- hideTopPanel
- showHeaderRowColumns
- hideHeaderRowColumns
|
|
|
|
|
|
| |
I'm sick and tired of trying to make this work cross-browser.
Box-sizing FTW, which means that this example no longer displays
correct in IE7. Oh well, this is just an example.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added a way to provide row and/or cell specific metadata:
The item metadata is retrieved separately from the item itself. It is done via the optional "getItemMetadata(index)" method on the data provider. The method should return an object that will be queried by the grid. The object can contain row-level properties itself (currently supported: selectable, focusable, cssClasses, formatter, editor) and a "columns" collection with column-level properties (currently supported: selectable, focusable, cssClasses, formatter, editor, colspan) indexed by column id or index. The grid will first try to read a supported property off row-level metadata, then off column-level metadata first by id and then by index, and then off the column definition.
Renamed "unselectable" into "selectable" and changed how it works. It is now queried in the order described above, and the first available value is read. The new "focusable" property works the same way.
Separated logic for determining whether a cell can be active/focused and selected. Added "canCellBeActive" method.
Removed grouping-related code from the grid core and implemented it via "getItemMetadata" on the DataView.
Rewrote cell navigation to work with colspan.
Added support for colspan. Colspan can be defined on the column definition (or item metadata via getItemMetadata). A special value of "*" is taken to mean "span the rest of the row".
TODO:
Further decouple grouping. Add a grouping plugin to handle toggling and provide formatters. Move that stuff out of the DataView.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in now!
Added Slick.NonDataRow and deriving Slick.Group and Slick.GroupTotals classes that the grid recognizes.
Added grouping and aggregation support to the DataView.
DataView.groupBy() takes in a grouping value getter (either a property name or a function), a grouping value formatter, and an optional sort comparer.
The sort comparer is pretty slick. Unlike most other implementations, SlickGrid's grouping does not force you into any particular order. It can take your data just the way it is ordered and simply break it into groups. Essentially, you can end up with multiple groups with the same value in different places. If you do specify the grouping sort, however, you get a more traditional ordering where the items are first ordered by the groups and, then, ordered by whatever you normally sort by withing the groups.
DataView now also supports custom aggregators and group expanding/collapsing. Several reference aggregators are included in Slick.Data.
Totals row cells are formatted using the "groupTotalsFormatter" specified on the column definition.
To maintain a consistent API, I've decided to remove the "fastSort" DataView method. For IE8 and lower, it may be better to override Array.prototype.sort with a custom quicksort or mergesort implementation. Overriding the Object.toString works great, but it requires a different way of specifying the sort.
Also for consistency's sake, I've removed the DataView.rows collection. DataView now exposes GetItem() and GetLength() and can be used as a databinding source directly.
|
|
|
|
| |
now deprecated curCSS with the regular jQuery css() since it now returns computed styles and normalizes the units. Changed dimensions variables from ints to floats to better work with browser zooming. Zooming is still mostly broken though due to buggy browser implementations. IE and FF can be worked around, but Chrome rounds up all returned computed styles, so we're out of luck.
|
|
|
|
| |
actual elements. This fixes the issues displaying the grid in an initially hidden container.
|
|
|
|
|
| |
Grid and DataView now set the scope to the instance.
Corrected args format in events in DataView.
|
|
column filters.
Renamed "secondary header row" to "top panel" for clarity.
|