Skip to content

Commit f9bf92f

Browse files
committed
Allow HTMLView to communicate back to server
1 parent 5074e9d commit f9bf92f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

nengo_gui/components/htmlview.py

+3
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ def javascript(self):
4343

4444
def code_python_args(self, uids):
4545
return [uids[self.obj]]
46+
47+
def message(self, msg):
48+
self.obj_output._nengo_message_ = msg;

nengo_gui/static/components/htmlview.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Nengo.HTMLView = function(parent, sim, args) {
2222
this.pdiv.classList.add('htmlview');
2323
this.div.appendChild(this.pdiv);
2424

25+
this.pdiv.ws = this.ws;
26+
2527
/** for storing the accumulated data */
2628
this.data_store = new Nengo.DataStore(1, this.sim, 0);
2729

0 commit comments

Comments
 (0)