cosmos-explorer/src/applyExplorerBindings.ts
2021-05-18 23:41:44 -05:00

12 lines
374 B
TypeScript

import * as ko from "knockout";
import { BindingHandlersRegisterer } from "./Bindings/BindingHandlersRegisterer";
import Explorer from "./Explorer/Explorer";
export const applyExplorerBindings = (explorer: Explorer) => {
if (!!explorer) {
window.dataExplorer = explorer;
BindingHandlersRegisterer.registerBindingHandlers();
ko.applyBindings(explorer);
}
};