Mercurial > hg > orthanc-stone
diff Platforms/Wasm/default-library.js @ 287:2038d76bf13f am-2
interaction with HTML/JS
author | am@osimis.io |
---|---|
date | Thu, 30 Aug 2018 11:36:36 +0200 |
parents | f73d722d98c8 |
children | 5055031f4a06 |
line wrap: on
line diff
--- a/Platforms/Wasm/default-library.js Tue Aug 28 15:34:20 2018 +0200 +++ b/Platforms/Wasm/default-library.js Thu Aug 30 11:36:36 2018 +0200 @@ -6,6 +6,11 @@ }, CreateWasmViewportFromCpp: function(htmlCanvasId) { return CreateWasmViewport(htmlCanvasId); + }, + // each time the StoneApplication updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface + UpdateStoneApplicationStatusFromCpp: function(statusUpdateMessage) { + var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); + UpdateWebApplication(statusUpdateMessage_); } }); \ No newline at end of file