Add refresh button to cards
I recently added a refresh()
-method to the JavaScript Dashboard Card Control (see 86f0f765). This method is supposed to be overwritten by every new card that inherits the card control. When executed it should refresh the the card's content with new data.
It might be useful to add a refresh-button to all (or at least some) cards. Maybe the card-control could have a property "isRefreshable. If this is set to true a button is displayed somewhere on the card (e.g. top right) and when it's clicked the card refreshes.
Also it would be possible to add a global refresh button to the dashboard, that refreshes all cards, without reloading the whole page (like an observer pattern).