Click event listener
Whether to close/focus out on click
Whether to close/focus out on pressing of Enter key
Whether to close/focus out on pressing of Escape key
Content focus in emitter
Content focus out emitter
Holds the current window element
Document click event listener
Whether the mouseDown event of the element is triggered
Whether the mouseUp event of the element is triggered
Emitted when document click and window keydown event listeners should be added/removed
Holds the event of the clicked element
Whether the element is focused
Key down event listener
Mouse down event listener
Mouse up event listener
Sets the window element
Adds document click window keydown event listeners
Emits contentFocusOut and removes document click and window keydown event listeners
Handles document click Calls focus out if a click occurs outside of the element
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
Handles element click Emits focus in if the element is not focused and calls focus out if it is already focused
Handles mouseDown event of element
Handles mouseUp event of element
Removes document click window keydown event listeners
Resets mouseDown and mouseUp flags
Generated using TypeDoc
API reference for SfTrackFocusDirective
import {SfCommonModule} from "@progress/sitefinity-component-framework";
attribute:
sfTrackFocus
description: Tracks the focus events of an element