pub struct PaginationProps<T: Clone + PartialEq + 'static> {
pub table: UseTableHandle<T>,
pub class: Classes,
pub button_class: Classes,
pub disabled_class: Classes,
pub show_page_size_selector: bool,
pub show_page_info: bool,
pub page_size_options: Vec<usize>,
}Expand description
Props for the Pagination component.
Fields§
§table: UseTableHandle<T>The table handle from use_table hook.
class: ClassesCustom class for the pagination container.
Custom class for buttons.
disabled_class: ClassesCustom class for disabled buttons.
show_page_size_selector: boolWhether to show page size selector.
show_page_info: boolWhether to show page info.
page_size_options: Vec<usize>Page size options.
Trait Implementations§
Source§impl<T: Clone + Clone + PartialEq + 'static> Clone for PaginationProps<T>
impl<T: Clone + Clone + PartialEq + 'static> Clone for PaginationProps<T>
Source§fn clone(&self) -> PaginationProps<T>
fn clone(&self) -> PaginationProps<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for PaginationProps<T>
impl<T> !RefUnwindSafe for PaginationProps<T>
impl<T> !Send for PaginationProps<T>
impl<T> !Sync for PaginationProps<T>
impl<T> Unpin for PaginationProps<T>
impl<T> UnsafeUnpin for PaginationProps<T>
impl<T> !UnwindSafe for PaginationProps<T>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.