mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-29 05:41:40 +00:00
* Add more files to strict compile. Update CONTRIBUTING.md to recommend FluentUI use * Remove eslint-disable and use non-null assertion
22 lines
637 B
TypeScript
22 lines
637 B
TypeScript
import * as ko from "knockout";
|
|
import * as ReactBindingHandler from "./ReactBindingHandler";
|
|
|
|
export class BindingHandlersRegisterer {
|
|
public static registerBindingHandlers() {
|
|
ko.bindingHandlers.setTemplateReady = {
|
|
init(
|
|
element: any,
|
|
wrappedValueAccessor: () => any,
|
|
allBindings?: ko.AllBindings,
|
|
viewModel?: any,
|
|
bindingContext?: ko.BindingContext
|
|
) {
|
|
const value = ko.unwrap(wrappedValueAccessor());
|
|
bindingContext?.$data.isTemplateReady(value);
|
|
}
|
|
} as ko.BindingHandler;
|
|
|
|
ReactBindingHandler.Registerer.register();
|
|
}
|
|
}
|