Bootstrap

API focustrack

activeElement$

function

activeElement$(): null | Element

Returns the value of the store. This is a shortcut for calling get with the store.

Returns

null | Element


createHasFocus

function

createHasFocus(): HasFocus

Create a HasFocus

Returns

HasFocus

a HasFocus


HasFocus

interface
Properties
directive

directive: Directive

Directive to put on some elements.


hasFocus$

hasFocus$: ReadableSignal<boolean>

Store that contains true if the activeElement is one of the elements which has the directive, or any of their descendants.