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 181181
182182 return h + ':' + m + ':' + s ;
183183
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
185198 ] ,
186199 ajaxResponse :function ( url , params , response ) {
187200
201214
202215
203216 } ) ;
204- } ( ) ) ;
217+ } ( ) ) ;
You can’t perform that action at this time.
0 commit comments