pub struct SidebarProps {
pub children: Children,
pub on_close: Callback<()>,
pub id_prefix: String,
pub width_override: Option<i32>,
pub selected_tab: Option<usize>,
pub header_props: EditableHeaderProps,
pub auto_width: f64,
pub on_auto_width: Callback<f64>,
pub is_pinned: bool,
pub on_toggle_pin: Option<Callback<()>>,
}Fields§
§children: ChildrenThe component’s children.
on_close: Callback<()>When this callback is called, the sidebar will close
id_prefix: String§width_override: Option<i32>§selected_tab: Option<usize>§header_props: EditableHeaderProps§auto_width: f64Trap-door width shared across this sidebar’s tabs: the lifted
running max of the widths this component reports through
on_auto_width. Held by the parent (ultimately
PerspectiveViewer’s geometry state, like the settings panel’s
Query/Plugin/Debug trap-door) so it survives tab switches AND
sidebar re-mounts, and clears on divider reset.
on_auto_width: Callback<f64>Fires with the sidebar’s rendered width after each render; the
owner keeps the running max threaded back as auto_width.
is_pinned: boolPinned state for the header’s pin toggle; the button renders only
when on_toggle_pin is provided.
on_toggle_pin: Option<Callback<()>>Trait Implementations§
Source§impl Clone for SidebarProps
impl Clone for SidebarProps
Source§fn clone(&self) -> SidebarProps
fn clone(&self) -> SidebarProps
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 PartialEq for SidebarProps
impl PartialEq for SidebarProps
Source§impl Properties for SidebarProps
impl Properties for SidebarProps
impl StructuralPartialEq for SidebarProps
Auto Trait Implementations§
impl !RefUnwindSafe for SidebarProps
impl !Send for SidebarProps
impl !Sync for SidebarProps
impl !UnwindSafe for SidebarProps
impl Freeze for SidebarProps
impl Unpin for SidebarProps
impl UnsafeUnpin for SidebarProps
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> HasAllProps<(), T> for T
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.