chiasm-project / chiasm

A browser based environment for interactive data visualizations.
MIT License
184 stars 27 forks source link

Add a way to show the user notifications #56

Open curran opened 8 years ago

curran commented 8 years ago

It should be easy for components to show notifications to the user.

Example notifications include:

One possible solution is to adopt a simple convention for Chiasm components to broadcast messages (e.g. setting chiasm.log), then implement a Chiasm component that will render the notifications (pop them up, then fade them out after a few seconds). This component can listen for errors with chiasm.on("log", function (log){ ... });, using the synchronous model.on functionality of model.js.