I have a slate application that’s is connected to an Ontology ObjectSet. The objectset provides tabular data.
I also have a fully production built VueJS application embedded in Slate as a code sandbox that uses this Objectset to display the data in a nicely customizable table.
I expose a setReportData function from the VueJS so I can inject the ObjectSet into the Vue application easily: window.setReportData({{responseJson}}); with handlebars syntax.
However, if I modify the data in the Vue application and try to send the modified data back to Slate to do other things with it, I am not able to do that. Has anyone found a way to communicate back from JavaScript to Slate, or is it the sandbox nature of Slate that would not let us do that?
Per the docs, looks like it should be possible. Check out the interaction section which walks through how to pass data back to the state which can then be used by the rest of slate.
1 Like