How to use the esp-js-ui.IdFactory.createId 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 / examples / esp-js-ui-module-based-app / src / trading-module / blotter / models / blotterModel.ts View on Github external
constructor(
        router,
        regionManager: RegionManager,
        initialState: BlotterState // needs to be last due to how it's resolved via the container
    ) {
        super(IdFactory.createId('blotterModel'), router);
        this._regionManager = regionManager;
        this._initialState = initialState;
    }
github esp / esp-js / examples / esp-js-ui-module-based-app / src / trading-module / cash-tile / models / cashTileModel.ts View on Github external
constructor(
        router,
        regionManager: RegionManager,
        initialState: CashTileState // needs to be last due to how it's resolved via the container
    ) {
        super(IdFactory.createId('cashTileModel'), router);
        this._regionManager = regionManager;
        this._initialState = initialState;
    }
github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / trading-module / cash-tile / models / cashTileModel.ts View on Github external
constructor(
        router,
        regionManager:RegionManager,
        initialState:CashTileState // needs to be last due to how it's resolved via the container
    ) {
        super(IdFactory.createId('cashTileModel'), router);
        this._regionManager = regionManager;
        this._initialState = initialState;
    }
    public getTitle(): string {
github esp / esp-js / examples / esp-js-ui-module-based-app / src / trading-module / cash-tile / cashTileViewFactory.ts View on Github external
_createView(childContainer, state: CashTileModel): PolimerModel {
        _log.verbose('Creating cash tile model');

        const modelId = IdFactory.createId('cashTileModel');

        const initialModel = state || defaultModelFactory(modelId, 'EURUSD');

        let model = this._router
            // ***************************
            // Create a model and setup some initial state
            .modelBuilder()
            .withInitialModel(initialModel)

            // ***************************
            // Wire up state handlers.
            // 2 methods are supported.

            // 1) Simple handler objects
            .withStateHandlerMap('rootState', rootStateHandlerMap)
            .withStateHandlerMap('referenceData', referenceDataStateHandlerMap)
github esp / esp-js / packages / esp-js-ui / examples / module-based-app / src / shell / models / shellModel.ts View on Github external
constructor(router,
                private _moduleLoader: ModuleLoader,
                private _workspaceRegion:MultiItemRegionModel,
                private _blotterRegion:SingleItemRegionModel
    ) {
        super(IdFactory.createId('shellModelId'), router);
        this.splashScreen = {
            state: SplashScreenState.Default
        };
    }
github esp / esp-js / examples / esp-js-ui-module-based-app / src / shell / models / shellModel.ts View on Github external
constructor(router,
                private _moduleLoader: ModuleLoader,
                private _workspaceRegion: MultiItemRegionModel,
                private _blotterRegion: SingleItemRegionModel
    ) {
        super(IdFactory.createId('shellModelId'), router);
        this.splashScreen = {
            state: SplashScreenState.Default
        };
    }