File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 181
181
182
182
return h + ':' + m + ':' + s ;
183
183
184
- } , } , //column will be allocated 1/5 of the remaining space
184
+ } , bottomCalc :"sum" , bottomCalcParams :{
185
+ precision :1 ,
186
+ } , bottomCalcFormatter :function ( cell , formatterParams , onRendered ) {
187
+ //cell - the cell component
188
+ //formatterParams - parameters set for the column
189
+ //onRendered - function to call when the formatter has been rendered
190
+ var duration = cell . getValue ( ) ;
191
+ var s = Math . floor ( ( duration ) % 60 ) ;
192
+ var m = Math . floor ( ( duration / 60 ) % 60 ) ;
193
+ var h = Math . floor ( ( duration / ( 60 * 60 ) ) ) ;
194
+
195
+ return h + ':' + m + ':' + s ;
196
+
197
+ } } , //column will be allocated 1/5 of the remaining space
185
198
] ,
186
199
ajaxResponse :function ( url , params , response ) {
187
200
201
214
202
215
203
216
} ) ;
204
- } ( ) ) ;
217
+ } ( ) ) ;
You can’t perform that action at this time.
0 commit comments