nrabinowitz/gapvis — Issue #10: Messaging framework
Author: nrabinowitz
Created: 2011-10-25 20:24:02+00:00
State: open

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' })