File

src/core/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.

Example

Index

Properties
Methods
Accessors

Constructor

constructor(dataSourceRegistry: DataSourceRegistry, router: Router, route: ActivatedRoute, smartWindowTitle: SmartWindowTitleService, smartConfig: SmartConfig)
Parameters :
Name Type Optional
dataSourceRegistry DataSourceRegistry No
router Router No
route ActivatedRoute No
smartWindowTitle SmartWindowTitleService No
smartConfig SmartConfig No

Methods

getBreadcrumbLabel
getBreadcrumbLabel(route: ActivatedRouteSnapshot)

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

Parameters :
Name Type Optional
route ActivatedRouteSnapshot 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)

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 No false

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

Returns : void

Properties

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

Accessors

currentViewInUpdateMode
getcurrentViewInUpdateMode()
Returns : EventEmitter<boolean>

result-matching ""

    No results matching ""