File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed
Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ declare namespace angular.apMesa {
9090 deselectAll : ( ) => void ;
9191 toggleSelectAll : ( ) => void ;
9292 setLoading : ( isLoading : boolean , triggerDigest ?: boolean ) => void ;
93+ // In case if server values are keep changing, refresh can be called programmatically to keep the table data in sync with server.
94+ refresh : ( ) => void ;
9395 reset : ( ) => void ;
9496 clearFilters : ( ) => void ;
9597 // Resets rows' sorting order to whatever options.initialSorts. You can also pass an explicit array of IInitialSort objects.
Original file line number Diff line number Diff line change 11{
22 "name" : " angularjs-table" ,
3- "version" : " 2.21.5 " ,
3+ "version" : " 2.21.6 " ,
44 "main" : [
55 " ./dist/ap-mesa.js" ,
66 " ./dist/ap-mesa.css"
Original file line number Diff line number Diff line change 11{
22 "name" : " angularjs-table" ,
3- "version" : " 2.21.5 " ,
3+ "version" : " 2.21.6 " ,
44 "license" : " Apache License, v2.0" ,
55 "dependencies" : {
66 "angular" : " ^1.6" ,
Original file line number Diff line number Diff line change 448448 scope . $digest ( ) ;
449449 }
450450 } ,
451+ refresh : function ( ) {
452+ if ( scope . options . getData ) {
453+ scope . $broadcast ( 'apMesa:forceRefresh' ) ;
454+ }
455+ } ,
451456 reset : function ( ) {
452457 scope . resetOffset ( ) ;
453458 resetState ( scope ) ;
You can’t perform that action at this time.
0 commit comments