nrabinowitz / gapvis

A visual interface for reading ancient texts for the Google Ancient Places project
http://googleancientplaces.wordpress.com
Other
126 stars 27 forks source link

Messaging framework #10

Closed nrabinowitz closed 12 years ago

nrabinowitz commented 12 years ago

It would be nice to have a minimal messaging framework to show nonce messages to users, a la Gmail's top-of-screen "loading" messages. I think this would be pretty easy to accomplish by setting the messages on the State object and having a view that listened for changes and showed the messages for a brief time at the top of the screen before closing them and removing them from the state. Assuming I could ignore the rare occurrence of multiple concurrent messages, the API for other views would be as simple as:

state.set({ message: 'Some message' })