pub struct EuvVirtualListProps {
pub config: EuvVirtualListConfig,
pub item_renderer: VirtualListItemRenderer,
pub on_scroll: Option<VirtualListScrollHandler>,
pub on_visible_range_change: Option<VirtualListRangeHandler>,
}Expand description
Props for the euv_virtual_list component.
Encapsulates the configuration, item renderer callback, and optional event callbacks for the virtual list.
Fields§
§config: EuvVirtualListConfig§item_renderer: VirtualListItemRenderer§on_scroll: Option<VirtualListScrollHandler>§on_visible_range_change: Option<VirtualListRangeHandler>Implementations§
Source§impl EuvVirtualListProps
impl EuvVirtualListProps
pub fn get_config(&self) -> &EuvVirtualListConfig
pub fn get_mut_config(&mut self) -> &mut EuvVirtualListConfig
pub fn set_config(&mut self, val: EuvVirtualListConfig) -> &mut Self
pub fn get_item_renderer(&self) -> &VirtualListItemRenderer
pub fn get_mut_item_renderer(&mut self) -> &mut VirtualListItemRenderer
pub fn set_item_renderer(&mut self, val: VirtualListItemRenderer) -> &mut Self
pub fn get_on_scroll(&self) -> VirtualListScrollHandler
pub fn try_get_on_scroll(&self) -> &Option<VirtualListScrollHandler>
pub fn get_mut_on_scroll(&mut self) -> &mut Option<VirtualListScrollHandler>
pub fn set_on_scroll( &mut self, val: Option<VirtualListScrollHandler>, ) -> &mut Self
pub fn get_on_visible_range_change(&self) -> VirtualListRangeHandler
pub fn try_get_on_visible_range_change( &self, ) -> &Option<VirtualListRangeHandler>
pub fn get_mut_on_visible_range_change( &mut self, ) -> &mut Option<VirtualListRangeHandler>
pub fn set_on_visible_range_change( &mut self, val: Option<VirtualListRangeHandler>, ) -> &mut Self
Source§impl EuvVirtualListProps
impl EuvVirtualListProps
pub fn new( config: EuvVirtualListConfig, item_renderer: VirtualListItemRenderer, on_scroll: Option<VirtualListScrollHandler>, on_visible_range_change: Option<VirtualListRangeHandler>, ) -> Self
Trait Implementations§
Source§impl Clone for EuvVirtualListProps
impl Clone for EuvVirtualListProps
Source§fn clone(&self) -> EuvVirtualListProps
fn clone(&self) -> EuvVirtualListProps
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 EuvVirtualListProps
impl Debug for EuvVirtualListProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvVirtualListProps
impl !Send for EuvVirtualListProps
impl !Sync for EuvVirtualListProps
impl !UnwindSafe for EuvVirtualListProps
impl Freeze for EuvVirtualListProps
impl Unpin for EuvVirtualListProps
impl UnsafeUnpin for EuvVirtualListProps
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