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