mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 15:06:55 +00:00
12 lines
374 B
TypeScript
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);
|
|
}
|
|
};
|