pub struct FocusScopeProps {
pub trapped: bool,
pub auto_focus: bool,
pub class: Option<String>,
}Expand description
Properties for FocusScope.
Fields§
§trapped: boolWhether focus should be trapped within this scope.
auto_focus: boolWhether to auto-focus the first focusable element on mount.
class: Option<String>Trait Implementations§
Source§impl Clone for FocusScopeProps
impl Clone for FocusScopeProps
Source§fn clone(&self) -> FocusScopeProps
fn clone(&self) -> FocusScopeProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FocusScopeProps
impl Debug for FocusScopeProps
Source§impl Default for FocusScopeProps
impl Default for FocusScopeProps
Source§fn default() -> FocusScopeProps
fn default() -> FocusScopeProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for FocusScopeProps
impl PartialEq for FocusScopeProps
Source§fn eq(&self, other: &FocusScopeProps) -> bool
fn eq(&self, other: &FocusScopeProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FocusScopeProps
Auto Trait Implementations§
impl Freeze for FocusScopeProps
impl RefUnwindSafe for FocusScopeProps
impl Send for FocusScopeProps
impl Sync for FocusScopeProps
impl Unpin for FocusScopeProps
impl UnsafeUnpin for FocusScopeProps
impl UnwindSafe for FocusScopeProps
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