How to use the esp-js-ui.SystemContainerConst.region_manager function in esp-js-ui

To help you get started, we’ve selected a few esp-js-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / trading-module / tradingModule.ts View on Github external
.inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.cashTileModel}`);
        this.container
            .register(TradingModuleContainerConst.cashTileModel, CashTileModel)
            .inject(SystemContainerConst.router, SystemContainerConst.region_manager)
            .singletonPerContainer();
        _log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
        this.container
            .register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
            .inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
            .singleton()
            .inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
        this.container
            .register(TradingModuleContainerConst.blotterModel, BlotterModel)
            .inject(SystemContainerConst.router, SystemContainerConst.region_manager)
            .singletonPerContainer();
        _log.groupEnd();
    }
github esp / esp-js / examples / esp-js-ui-module-based-app / src / shell / shellBootstrapper.tsx View on Github external
_configureContainer() {
        this._container
            .register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
            .inject(
                {resolver: LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
            .inject(
                {resolver: LiteralResolver.resolverName, value: RegionNames.blotterRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.shell_model, ShellModel)
            .inject(
                SystemContainerConst.router,
                SystemContainerConst.module_loader,
                ShellModuleContainerConst.workspace_region,
                ShellModuleContainerConst.blotter_region
            );
    }
github esp / esp-js / examples / esp-js-ui-module-based-app / src / trading-module / tradingModule.ts View on Github external
_log.debug(`Registering ${TradingModuleContainerConst.cashTileComponentFactory}`);
        this.container
            .register(TradingModuleContainerConst.cashTileComponentFactory, CashTileComponentFactory)
            .inject(EspDiConsts.owningContainer, SystemContainerConst.router)
            .singleton()
            .inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
        this.container
            .register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
            .inject(EspDiConsts.owningContainer, SystemContainerConst.router)
            .singleton()
            .inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
        this.container
            .register(TradingModuleContainerConst.blotterModel, BlotterModel)
            .inject(SystemContainerConst.router, SystemContainerConst.region_manager)
            .singletonPerContainer();
        _log.groupEnd();
    }
github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / trading-module / tradingModule.ts View on Github external
configureContainer() {
        _log.group('Configuring container');
        _log.debug(`Registering ${TradingModuleContainerConst.cashTileComponentFactory}`);
        this.container
            .register(TradingModuleContainerConst.cashTileComponentFactory, CashTileComponentFactory)
            .inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
            .singleton()
            .inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.cashTileModel}`);
        this.container
            .register(TradingModuleContainerConst.cashTileModel, CashTileModel)
            .inject(SystemContainerConst.router, SystemContainerConst.region_manager)
            .singletonPerContainer();
        _log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
        this.container
            .register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
            .inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
            .singleton()
            .inGroup(this._componentFactoryGroupId);
        _log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
        this.container
            .register(TradingModuleContainerConst.blotterModel, BlotterModel)
            .inject(SystemContainerConst.router, SystemContainerConst.region_manager)
            .singletonPerContainer();
        _log.groupEnd();
    }
github esp / esp-js / examples / esp-js-ui-module-based-app / src / shell / shellBootstrapper.tsx View on Github external
_configureContainer() {
        this._container
            .register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
            .inject(
                {resolver: LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
            .inject(
                {resolver: LiteralResolver.resolverName, value: RegionNames.blotterRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.shell_model, ShellModel)
            .inject(
                SystemContainerConst.router,
                SystemContainerConst.module_loader,
                ShellModuleContainerConst.workspace_region,
github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / shell / shellBootstrapper.tsx View on Github external
_configureContainer() {
        this._container
            .register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
            .inject(
                {resolver:LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
            .inject(
                {resolver:LiteralResolver.resolverName, value: RegionNames.blotterRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.shell_model, ShellModel)
            .inject(
                SystemContainerConst.router,
                SystemContainerConst.module_loader,
                ShellModuleContainerConst.workspace_region,
                ShellModuleContainerConst.blotter_region
            );
    }
github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / shell / shellBootstrapper.tsx View on Github external
_configureContainer() {
        this._container
            .register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
            .inject(
                {resolver:LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
            .inject(
                {resolver:LiteralResolver.resolverName, value: RegionNames.blotterRegion},
                SystemContainerConst.router,
                SystemContainerConst.region_manager
            )
            .singleton();
        this._container
            .register(ShellModuleContainerConst.shell_model, ShellModel)
            .inject(
                SystemContainerConst.router,
                SystemContainerConst.module_loader,
                ShellModuleContainerConst.workspace_region,