pub struct EuvPaginationProps {
pub prev_label: &'static str,
pub next_label: &'static str,
pub prev: Option<EuvPaginationItem>,
pub next: Option<EuvPaginationItem>,
}Expand description
Props for the euv_pagination component.
Fields§
§prev_label: &'static strThe label above the previous entry (for example Previous).
next_label: &'static strThe label above the next entry (for example Next).
prev: Option<EuvPaginationItem>The previous entry; None renders a spacer.
next: Option<EuvPaginationItem>The next entry; None renders a spacer.
Implementations§
Source§impl EuvPaginationProps
impl EuvPaginationProps
pub fn get_prev_label(&self) -> &'static str
pub fn get_mut_prev_label(&mut self) -> &mut &'static str
pub fn set_prev_label(&mut self, val: &'static str) -> &mut Self
pub fn get_next_label(&self) -> &'static str
pub fn get_mut_next_label(&mut self) -> &mut &'static str
pub fn set_next_label(&mut self, val: &'static str) -> &mut Self
pub fn get_prev(&self) -> Option<EuvPaginationItem>
pub fn try_get_prev(&self) -> Option<EuvPaginationItem>
pub fn get_mut_prev(&mut self) -> &mut Option<EuvPaginationItem>
pub fn set_prev(&mut self, val: Option<EuvPaginationItem>) -> &mut Self
pub fn get_next(&self) -> Option<EuvPaginationItem>
pub fn try_get_next(&self) -> Option<EuvPaginationItem>
pub fn get_mut_next(&mut self) -> &mut Option<EuvPaginationItem>
pub fn set_next(&mut self, val: Option<EuvPaginationItem>) -> &mut Self
Source§impl EuvPaginationProps
impl EuvPaginationProps
pub fn new( prev_label: &'static str, next_label: &'static str, prev: Option<EuvPaginationItem>, next: Option<EuvPaginationItem>, ) -> Self
Trait Implementations§
Source§impl Clone for EuvPaginationProps
impl Clone for EuvPaginationProps
Source§fn clone(&self) -> EuvPaginationProps
fn clone(&self) -> EuvPaginationProps
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 moreimpl Copy for EuvPaginationProps
Source§impl Debug for EuvPaginationProps
impl Debug for EuvPaginationProps
Source§impl Default for EuvPaginationProps
impl Default for EuvPaginationProps
Source§fn default() -> EuvPaginationProps
fn default() -> EuvPaginationProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EuvPaginationProps
impl RefUnwindSafe for EuvPaginationProps
impl Send for EuvPaginationProps
impl Sync for EuvPaginationProps
impl Unpin for EuvPaginationProps
impl UnsafeUnpin for EuvPaginationProps
impl UnwindSafe for EuvPaginationProps
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