← Back to team overview

dhis2-devs team mailing list archive

New user feedback / message panel

 

To devs,

I have added a new div for user feedback which appears fixed on top of the
screen. These methods can be used directly from any javascript:

setHeaderMessage( message ) // sets header message
updateHeaderMessage( message ) // updates header message text
setHeaderWaitMessage( message ) // sets header message including a gif
working-animation
updateHeaderWaitMessage( message ) // update header wait message text
setHeaderDelayMessage( message ) // sets header message and hides it after 3
secs
hideHeaderMessage() // hides header message


This can be viewed eg for the generate chart function and when exporting a
report table to excel/html/csv when it has not yet been generated.

Should be useful for situations where there are no natural place to put a
message, like in lists. We could consider moving all messages here for
standardisation.


Lars

Follow ups