Hi team,
I am working on building a user-facing interface on top of a Zeppelin
notebook. To do this I am linking to individual paragraphs and including
them in the dashboard UI externally.
I have a paragraph that renders a graph using the following code:
println("%table x\ty\tz\n" + function(z.input("param1", "value1").toString)
but when linked externally, the input fields generated by z.input do not
appear. (Maybe this is a bug?) To work around this, I attempted to
create the input fields via the Angular interpreter:
println("""%angular<input type="text" ng-model="param1"</input>""")
and linked the model with my function from above by replacing the
z.input with z.angular("param1"). This works, but only if I re-run the
graph-building paragraph manually after entering new text in the Angular
input field. How can I trigger the graph paragraph automatically, either
after updating the text or by pressing another button that is available
when linking the paragraph externally?
I tried using z.angularWatch to set a listener on the Angular model (as
shown in the "Angular display system dashboard on Zeppelin" video), but
was not able to get this to work. If this is the solution, could you
provide a short example of how to trigger graph rendering after a change
in an Angular variable?
Thanks in advance,
Taylor