@paperbits/core
Version:
Paperbits core components.
14 lines (13 loc) • 758 B
text/typescript
import { IInjectorModule, IInjector } from "@paperbits/common/injection";
import { TabPanelViewModel } from "./ko/tabPanel";
import { TabPanelModelBinder } from "./tabPanelModelBinder";
import { TabPanelViewModelBinder } from "./ko/tabPanelViewModelBinder";
import { TabPanelStyleHandler } from "./tabPanelStyleHandler";
export class TabPanelPublishModule implements IInjectorModule {
public register(injector: IInjector): void {
injector.bind("tabPanel", TabPanelViewModel);
injector.bindToCollection("modelBinders", TabPanelModelBinder, "tabPanelModelBinder");
injector.bindToCollection("viewModelBinders", TabPanelViewModelBinder);
injector.bindToCollection("styleHandlers", TabPanelStyleHandler);
}
}