collectivemedia / celos

Scriptable scheduler for periodical Hadoop workflows
Apache License 2.0
22 stars 9 forks source link

Render celos-ui with react.js #633

Open ollie64 opened 8 years ago

ollie64 commented 8 years ago

React needs static Dispatcher for every "state" saved in React tree. But in case of "widgets" collection aka workflowGroups we don't have it statically, I created this.clickOnSlot function as event dispatcher and sent tableHandler to every child. To trigger event you need to call tableHandler.dispatch(or clickOnSlot for single event). PS original flux design has only global dispatchers that can be called statically everywhere.