pub enum InitialFocus {
None,
Auto,
Selector(String),
Element(HtmlElement),
Function(Box<dyn Fn() -> HtmlElement>),
}Expand description
The method trap will use to decide the initial focus element
Variants§
None
The trap doesn’t do initial focus
Auto
The trap focuses the first focusable element inside the trap
Selector(String)
The trap focuses the first element that matches given selector inside the trap
Element(HtmlElement)
The trap focuses given element
Function(Box<dyn Fn() -> HtmlElement>)
The trap focuses returned element by the function
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InitialFocus
impl !Send for InitialFocus
impl !Sync for InitialFocus
impl !UnwindSafe for InitialFocus
impl Freeze for InitialFocus
impl Unpin for InitialFocus
impl UnsafeUnpin for InitialFocus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more