File

src/core/services/smart-view-manager.service.ts

Description

A service used for initializing views. It's main purpose is handling title management for the browser window and SmartTabs.

Index

Properties
Methods
Accessors

Constructor

constructor(dataSourceRegistry: DataSourceRegistry, router: Router, route: ActivatedRoute, smartWindowTitle: SmartWindowTitleService, smartConfig: SmartConfig, menuStructure: SmartMenuStructureService, navigationService: SmartNavigationService, logger: SmartLoggerService)
Parameters :
Name Type Optional
dataSourceRegistry DataSourceRegistry No
router Router No
route ActivatedRoute No
smartWindowTitle SmartWindowTitleService No
smartConfig SmartConfig No
menuStructure SmartMenuStructureService No
navigationService SmartNavigationService No
logger SmartLoggerService No

Methods

getBreadcrumbLabel
getBreadcrumbLabel(routeInfo: literal type)

Compiles and returns the label that a breadcrumb associated with the given route should display.

Parameters :
Name Type Optional
routeInfo literal type No
Returns : string
initializeCurrentView
initializeCurrentView(route: any, controllerInstance: SmartFormComponent)

Initializes the provided route's current view by compiling it's browser title template and setting the browser window title. If necessary, will also set up listeners on any data source's included in the template so that the browser title is updated when their selection changes.

Parameters :
Name Type Optional
route any No
controllerInstance SmartFormComponent No
Returns : void
initializeTabView
initializeTabView(tab: SmartTab, injector: Injector, refreshTitle: unknown)

Initializes the given SmartTab by compiling it's title template and setting up any listeners that may be necessary for keeping it up to date.

Parameters :
Name Type Optional Default value Description
tab SmartTab No
injector Injector No
refreshTitle unknown No false

indicates whether any listeners associated with this tab should be discarded and new ones be set up

Returns : void

Properties

formParams
Use formParamsSignal instead
Type : BehaviorSubject<FormParams>
Default value : new BehaviorSubject<FormParams>( null )

The current form parameters as a BehaviorSubject.

Public Readonly formParamsSignal
Type : Signal<FormParams | null>
Default value : this._formParamsSignal.asReadonly()

Signal holding the current form parameters.

Accessors

currentViewInUpdateMode
getcurrentViewInUpdateMode()
Returns : EventEmitter<boolean>

results matching ""

    No results matching ""