Blazorise FocusTrap component
The focus trap component allows to restrict TAB key navigation inside the component.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
Active | false | bool |
If true the TAB focus will be activated. | ||
ChildContent | null | RenderFragment |
Defines the content rendered inside the focus trap. | ||
Methods
| Method | Return | Parameters |
|---|---|---|
SetFocus | Task | — |
Sets the focus trap.
| ||
NotifyFocusableComponentInitialized | void | IFocusableComponent focusableComponent |
Notifies the container component that its IFocusableComponent is initialized.
| ||
NotifyFocusableComponentRemoved | void | IFocusableComponent focusableComponent |
Notifies the container component that its IFocusableComponent is removed.
| ||