noflo / noflo-ui

NoFlo Development Environment
https://app.flowhub.io
MIT License
767 stars 173 forks source link

Allow to set json objects as initials #79

Closed djdeath closed 10 years ago

djdeath commented 10 years ago

I think that feature was discussed for FBP as well.

It would be nice to be able to write some json in the initials of a component and let the UI parse it and send it as an initial to the runtime. Also the UI could let you know whether the entered json is valid or not by highlighting in case of error.

We obviously don't want 20k lines of json in there, but writing '[]' for an empty would be pretty pleasant.

bergie commented 10 years ago

This should probably be the way we handle input for port types object and array.

djdeath commented 10 years ago

Sweeeeet :8ball:

bergie commented 10 years ago

In action:

screenshot 2014-02-06 at 17 23 44

forresto commented 10 years ago

That's cool. One of those little things that I thought of but fell through the cracks.