pub struct SplitPanelProps {
pub children: Children,
pub id: Option<String>,
pub orientation: Orientation,
pub skip_empty: bool,
pub no_wrap: bool,
pub reverse: bool,
pub on_reset: Option<Callback<()>>,
pub on_resize: Option<Callback<(i32, i32)>>,
pub on_resize_finished: Option<Callback<()>>,
pub initial_size: Option<i32>,
pub deferred: bool,
pub size: Option<i32>,
}Fields§
§children: Children§id: Option<String>§orientation: Orientation§skip_empty: boolWhether to OMIT children that render nothing (an empty fragment, or
any nesting of empty fragments — see [is_empty_html]) instead of
rendering them as empty panes. A skipped pane takes its divider with
it.
no_wrap: boolShould the child panels by wrapped in <div> elements?
reverse: boolShould the panels be rendered/sized in reverse order?
on_reset: Option<Callback<()>>§on_resize: Option<Callback<(i32, i32)>>§on_resize_finished: Option<Callback<()>>§initial_size: Option<i32>§deferred: boolWhen true, a divider drag does NOT apply pane sizes directly:
MoveResizing only emits on_resize with the proposed dims, and pane
0’s committed size is driven exclusively by the controlled
Self::size prop — set by the parent when it is ready (e.g. after
pre-rendering panel content at the target size). This is the presize
gate for continuous divider drags (PRESIZE_EVERYWHERE_PLAN.md,
P1): geometry never outruns content. Only meaningful when the
resizable pane is child 0 (as in the viewer’s app_panel).
size: Option<i32>Controlled committed size for pane 0 (deferred mode). Unlike
Self::initial_size (read once at create), changes to this prop
re-derive pane 0’s style on every changed.
Trait Implementations§
Source§impl Default for SplitPanelProps
impl Default for SplitPanelProps
Source§fn default() -> SplitPanelProps
fn default() -> SplitPanelProps
Source§impl PartialEq for SplitPanelProps
impl PartialEq for SplitPanelProps
Auto Trait Implementations§
impl !RefUnwindSafe for SplitPanelProps
impl !Send for SplitPanelProps
impl !Sync for SplitPanelProps
impl !UnwindSafe for SplitPanelProps
impl Freeze for SplitPanelProps
impl Unpin for SplitPanelProps
impl UnsafeUnpin for SplitPanelProps
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
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>
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>
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>
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
self to a value of a Properties struct.