Purpose
For use on form inputs.
Set the user's focus to the attached input, on load, or on the firing of an action.
Action | Purpose |
---|
steal | Set the user's focus to the current element |
Value | Type | Description | Default |
---|
mode (Optional) | String | Either immediate or wait .
immediate will call .focus() on the element as soon as the controller connects.
wait means the controller does not fire on load, it waits for the steal action to be called on demand. | immediate |
Events
Event | When | Dispatched on | event.detail |
---|
- | - | - | - |
Side Effects
None
How to Use