cosmos-explorer/src/applyExplorerBindings.ts

12 lines
374 B
TypeScript
Raw Normal View History

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();
2020-11-13 02:10:59 +00:00
ko.applyBindings(explorer);
}
};