Blazorise Focus Trap API
Explore the Blazorise Focus Trap API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Focus Trap documentation.
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.
| ||