Function isFocused
- is
Focused (node, storeFocused): ActionReturn<MinimalWritable<boolean>> Parameters
- node: HTMLElement
Target element.
- storeFocused: MinimalWritable<boolean>
Update store for focus changes.
Returns ActionReturn<MinimalWritable<boolean>>
Lifecycle functions.
- node: HTMLElement
Provides an action to monitor focus state of a given element and set an associated store with current focus state.
This action is usable with any writable store.