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
onInitialize
andonRendered
.onInitialize
will be get called when the actual init is finished (in case of lazy init enable it get called after that).onRendered
will be called after the `render' completes.
-
Exposed following 4 methods:
getHeaderWidth
to get the header width.getCanvasWidth
return the canvas width.getViewportHeight
return viewport height.getUID
return the grid ID.
-
Added
minimumContainerHeight
grid 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
enableAddRow
to prevent the last row hiding).- It fire
onRendered
event each time the footer created and recalculated (onDataviewRefreshed
- DataView {insert, delete etc..},onColumnsReordered
,onColumnsResized
andonInitialize
Grid). - Pass
updateSummaryData
method in options and implement to calculate the total row columns values.- It it will receive 3 parameters
items
,columns
andcallback
. - 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
aggregator
for 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