Find detailed [documentation here] (https://github.com/mleibman/SlickGrid/wiki).
###Extension of 6pac repo
-
Column configuration have new property
preventClearOnEdit.- This basically prevent the cell content get clear on editor get activate.
- Helpful in case's like here.
-
Now the editor will receive event as second parameter when available.
-
Two new events are added
onInitializeandonRendered.onInitializewill be get called when the actual init is finished (in case of lazy init enable it get called after that).onRenderedwill be called after the `render' completes.
-
Exposed following 4 methods:
getHeaderWidthto get the header width.getCanvasWidthreturn the canvas width.getViewportHeightreturn viewport height.getUIDreturn the grid ID.
-
Added
minimumContainerHeightgrid option. This is particularly useful when the grid element (container) reveal/show/appear on click (or pragmatically).- Example: carousel in bootstrap where the slides are hidden (have zero height?).
-
Implemented the total plugin (footer), its stays at the bottom (make sure to enable
enableAddRowto prevent the last row hiding).- It fire
onRenderedevent each time the footer created and recalculated (onDataviewRefreshed- DataView {insert, delete etc..},onColumnsReordered,onColumnsResizedandonInitializeGrid). - Pass
updateSummaryDatamethod in options and implement to calculate the total row columns values.- It it will receive 3 parameters
items,columnsandcallback. - One must call the callback with data (see example in the totals plugin code for example).
- It it will receive 3 parameters
- You can pass
aggregatorfor each column in the column definition.- Aggregator will receive 4 parameters
{sum: <<values>>, values: [<values>>]}, columnDef, event, args. - It must return the value.
- Aggregator will receive 4 parameters
- It fire
bower mslickgrid