pub fn page_down(&mut self) {
        if !self.data.is_empty() {
            if self.data.len() > 5 {
                let i = match self.state.selected() {
                    Some(i) => {
                        let down_five = i + 5;

                        if down_five <= self.data.len() {
                            down_five
                        } else {
                            self.data.len() - 1
                        }
                    }
                    None => 0,
                };
                self.state.select(Some(i));
            } else {
                self.state.select(Some(self.data.len() - 1));
            }
        }
    }
// Skip down 5 rows, no wrap
Skip down 5 rows, no wrap
Skip down 5 rows no wrap
pub fn page_down(&mut self) {
        if !self.data.is_empty() {
            if self.data.len() > 5 {
                let i = match self.state.selected() {
                    Some(i) => {
                        let down_five = i + 5;
                        if down_five <= self.data.len() {
                            down_five
                        } else {
                            self.data.len() - 1
                        }
                    }
                    None => 0,
                };
                self.state.select(Some(i));
            } else {
                self.state.select(Some(self.data.len() - 1));
            }
        }
    }
pub fn page_down ( & mut self ) { if ! self . data . is_empty ( ) { if self . data . len ( ) > 5 { let i = match self . state . selected ( ) { Some ( i ) => { let down_five = i + 5 ; if down_five <= self . data . len ( ) { down_five } else { self . data . len ( ) - 1 } } None => 0 , } ; self . state . select ( Some ( i ) ) ; } else { self . state . select ( Some ( self . data . len ( ) - 1 ) ) ; } } }
Skip down 5 rows, no wrap
Skip down 5 rows no wrap
&mut self
&mut self