pub struct PaginationProps {Show 15 fields
pub total: u32,
pub current_page: u32,
pub page_size: u32,
pub pager_count: u32,
pub show_total: bool,
pub show_size_picker: bool,
pub show_jumper: bool,
pub layout: String,
pub disabled: bool,
pub small: bool,
pub page_sizes: Vec<u32>,
pub on_current_change: Option<EventHandler<u32>>,
pub on_size_change: Option<EventHandler<u32>>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Pagination props
Fields§
§total: u32Total number of items
current_page: u32Current page number
page_size: u32Items per page
pager_count: u32Number of page buttons to show
show_total: boolWhether to show the total count
show_size_picker: boolWhether to show the page size selector
show_jumper: boolWhether to show the “Go to” input
layout: StringLayout sections
disabled: boolWhether the pagination is disabled
small: boolWhether to use small size
page_sizes: Vec<u32>Page size options
on_current_change: Option<EventHandler<u32>>Change event handler (current page)
on_size_change: Option<EventHandler<u32>>Change event handler (page size)
class: Option<String>§style: Option<String>Implementations§
Source§impl PaginationProps
impl PaginationProps
Sourcepub fn builder() -> PaginationPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PaginationPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PaginationProps.
On the builder, call .total(...)(optional), .current_page(...)(optional), .page_size(...)(optional), .pager_count(...)(optional), .show_total(...)(optional), .show_size_picker(...)(optional), .show_jumper(...)(optional), .layout(...)(optional), .disabled(...)(optional), .small(...)(optional), .page_sizes(...)(optional), .on_current_change(...)(optional), .on_size_change(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PaginationProps.
Trait Implementations§
Source§impl Clone for PaginationProps
impl Clone for PaginationProps
Source§fn clone(&self) -> PaginationProps
fn clone(&self) -> PaginationProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for PaginationProps
impl PartialEq for PaginationProps
Source§fn eq(&self, other: &PaginationProps) -> bool
fn eq(&self, other: &PaginationProps) -> bool
self and other values to be equal, and is used by ==.