pub struct TreeSelect { /* private fields */ }Implementations§
Source§impl TreeSelect
impl TreeSelect
pub fn new(nodes: Vec<TreeSelectNode>, cx: &mut Context<'_, Self>) -> Self
pub fn entity(nodes: Vec<TreeSelectNode>, cx: &mut App) -> Entity<Self>
pub fn selected( self, ids: impl IntoIterator<Item = impl Into<SharedString>>, ) -> Self
pub fn disabled_keys( self, ids: impl IntoIterator<Item = impl Into<SharedString>>, ) -> Self
pub fn multiple(self, multiple: bool) -> Self
pub fn filterable(self, filterable: bool) -> Self
pub fn placeholder(self, placeholder: impl Into<SharedString>) -> Self
pub fn max_panel_height(self, height: impl Into<Pixels>) -> Self
pub fn on_change( self, cb: impl Fn(Vec<SharedString>, &mut Window, &mut App) + 'static, ) -> Self
pub fn selected_keys(&self) -> Vec<SharedString>
pub fn set_filter_query( &mut self, query: impl Into<SharedString>, cx: &mut Context<'_, Self>, )
Trait Implementations§
Source§impl Render for TreeSelect
impl Render for TreeSelect
Auto Trait Implementations§
impl !RefUnwindSafe for TreeSelect
impl !Send for TreeSelect
impl !Sync for TreeSelect
impl !UnwindSafe for TreeSelect
impl Freeze for TreeSelect
impl Unpin for TreeSelect
impl UnsafeUnpin for TreeSelect
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> 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 more