pub struct PaginationProps {
pub classes: Classes,
pub current_page: u32,
pub total_pages: u32,
pub siblings: u32,
pub show_first_last: bool,
pub show_prev_next: bool,
pub on_page_change: Option<Callback<u32>>,
}Expand description
Properties for the Pagination component.
| Prop | Type | Default | Description |
|---|---|---|---|
current_page | u32 | 1 | Currently active page (1-indexed) |
total_pages | u32 | 10 | Total number of pages |
siblings | u32 | 1 | Pages shown on each side of current |
show_prev_next | bool | true | Show prev/next buttons |
show_first_last | bool | false | Show first/last page buttons |
on_page_change | Option<Callback<u32>> | None | Page change callback |
classes | Classes | — | Additional CSS classes |
Fields§
§classes: ClassesAdditional CSS classes applied to the pagination container.
current_page: u32The currently active page number (1-indexed).
total_pages: u32Total number of pages available.
siblings: u32Number of sibling pages to show on each side of the current page.
show_first_last: boolWhether to show first and last page buttons.
show_prev_next: boolWhether to show previous and next navigation buttons.
on_page_change: Option<Callback<u32>>Callback invoked with the new page number when a page is selected.
Trait Implementations§
Source§impl Clone for PaginationProps
impl Clone for PaginationProps
Source§fn clone(&self) -> PaginationProps
fn clone(&self) -> PaginationProps
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 moreSource§impl Debug for PaginationProps
impl Debug for PaginationProps
Source§impl Default for PaginationProps
impl Default for PaginationProps
Source§impl PartialEq for PaginationProps
impl PartialEq for PaginationProps
Source§impl Properties for PaginationProps
impl Properties for PaginationProps
impl StructuralPartialEq for PaginationProps
Auto Trait Implementations§
impl Freeze for PaginationProps
impl !RefUnwindSafe for PaginationProps
impl !Send for PaginationProps
impl !Sync for PaginationProps
impl Unpin for PaginationProps
impl UnsafeUnpin for PaginationProps
impl !UnwindSafe for PaginationProps
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.