File

src/services/focusManager/focus-manager.service.ts

Index

Properties
Methods

Constructor

constructor()

This line is required to access the non static elements of the class

Methods

focus
focus(component: any, event: any)

Focus focus manager service

Parameters :
Name Type Optional Description
component any No

The new focused component

event any No

The current javascript event

Returns : void
Private triggerLeaveEvents
triggerLeaveEvents(event: any)

Triggers leave events If the component is inside a container that subscribes the leave event then the event will be raised if the new focused component is in another container

Parameters :
Name Type Optional
event any No
Returns : void

Properties

activeComponent
Type : any

Active component of focus manager service Holds a pointer to the component instance of the current focused component in the application.

Static current
Type : FocusManagerService
Default value : null

Gives access to the FocusManagerService service without instance

oldActiveComponent
Type : any

Old active component of focus manager service Holds an instance to the previous focused component in the application.

results matching ""

    No results matching ""