Whether to close/focus out on pressing of Enter key
closeOnEscape
closeOnEscape:boolean = true
Whether to close/focus out on pressing of Escape key
contentFocusIn
contentFocusIn:EventEmitter<any> = ...
Content focus in emitter
contentFocusOut
contentFocusOut:EventEmitter<any> = ...
Content focus out emitter
focusSubscription
focusSubscription:BehaviorSubject<boolean> = ...
Emitted when document click and window keydown event listeners should be added/removed
windowElement
windowElement:Window
Sets the window element
Methods
ngOnDestroy
ngOnDestroy(): void
Returns void
ngOnInit
ngOnInit(): void
Returns void
onDocumentClick
onDocumentClick(event): void
Handles document click
Calls focus out if a click occurs outside of the element
Parameters
event: Event
Returns void
onDocumentEnterKey
onDocumentEnterKey(event): void
Handles document enter key
Calls focus out on enter if closeEnterKey is true
Calls focus out on escape if closeOnEscape is true
Calls focus out when tab or shift + tab are pressed
Parameters
event: Event
Returns void
onElementClick
onElementClick(event): void
Handles element click
Emits focus in if the element is not focused and calls focus out if it is already focused
API reference for SfTrackFocusDirective
import {SfCommonModule} from "@progress/sitefinity-component-framework";
attribute:
sfTrackFocus
description: Tracks the focus events of an element