React Wrapper Take 2 (#310)

This commit is contained in:
Steve Faulkner
2020-11-12 20:10:59 -06:00
committed by GitHub
parent 4ce9dcc024
commit d880723be9
6 changed files with 475 additions and 444 deletions

View File

@@ -5,12 +5,12 @@ import Explorer from "./Explorer/Explorer";
export const applyExplorerBindings = (explorer: Explorer) => {
if (!!explorer) {
ko.applyBindings(explorer);
// This message should ideally be sent immediately after explorer has been initialized for optimal data explorer load times.
// TODO: Send another message to describe that the bindings have been applied, and handle message transfers accordingly in the portal
sendMessage("ready");
window.dataExplorer = explorer;
BindingHandlersRegisterer.registerBindingHandlers();
ko.applyBindings(explorer);
$("#divExplorer").show();
}
};