2020-05-26 03:30:55 +01:00
|
|
|
import { BindingHandlersRegisterer } from "./Bindings/BindingHandlersRegisterer";
|
|
|
|
import * as ko from "knockout";
|
2020-07-20 18:59:40 +01:00
|
|
|
import Explorer from "./Explorer/Explorer";
|
2020-05-26 03:30:55 +01:00
|
|
|
|
|
|
|
export const applyExplorerBindings = (explorer: Explorer) => {
|
|
|
|
if (!!explorer) {
|
|
|
|
window.dataExplorer = explorer;
|
|
|
|
BindingHandlersRegisterer.registerBindingHandlers();
|
2020-11-13 02:10:59 +00:00
|
|
|
ko.applyBindings(explorer);
|
2021-01-19 22:31:55 +00:00
|
|
|
// 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
|
2020-05-26 03:30:55 +01:00
|
|
|
$("#divExplorer").show();
|
|
|
|
}
|
|
|
|
};
|