pub struct OffcanvasProps {Show 13 fields
pub children: Children,
pub show: bool,
pub placement: OffcanvasPlacement,
pub backdrop: bool,
pub backdrop_close: bool,
pub keyboard: bool,
pub scroll: bool,
pub on_show: Option<Callback<()>>,
pub on_hide: Option<Callback<()>>,
pub on_shown: Option<Callback<()>>,
pub on_hidden: Option<Callback<()>>,
pub class: Option<AttrValue>,
pub node_ref: NodeRef,
}Expand description
Props for the Offcanvas component
Fields§
§children: ChildrenOffcanvas children
show: boolWhether the offcanvas is shown
placement: OffcanvasPlacementOffcanvas placement
backdrop: boolWhether to show backdrop
backdrop_close: boolWhether to allow backdrop click to close
keyboard: boolWhether to enable keyboard escape
scroll: boolWhether to enable body scroll
on_show: Option<Callback<()>>Callback when offcanvas is shown
on_hide: Option<Callback<()>>Callback when offcanvas is hidden
on_shown: Option<Callback<()>>Callback when offcanvas show is complete
Callback when offcanvas hide is complete
class: Option<AttrValue>Additional CSS classes
node_ref: NodeRefAdditional HTML attributes
Trait Implementations§
Source§impl PartialEq for OffcanvasProps
impl PartialEq for OffcanvasProps
Source§impl Properties for OffcanvasProps
impl Properties for OffcanvasProps
impl StructuralPartialEq for OffcanvasProps
Auto Trait Implementations§
impl Freeze for OffcanvasProps
impl !RefUnwindSafe for OffcanvasProps
impl !Send for OffcanvasProps
impl !Sync for OffcanvasProps
impl Unpin for OffcanvasProps
impl !UnwindSafe for OffcanvasProps
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.