pub fn move_component_up(&mut self) {
        if self.can_move_component_up() {
            self.layout
                .components
                .swap(self.selected_component, self.selected_component - 1);
            self.selected_component -= 1;
            self.layout.remount();
        }
    }
/// Moves the selected component up, unless the first component is selected.
Moves the selected component up, unless the first component is selected.
Moves the selected component up unless the first component is selected .
pub fn move_component_up(&mut self) {
        if self.can_move_component_up() {
            self.layout
                .components
                .swap(self.selected_component, self.selected_component - 1);
            self.selected_component -= 1;
            self.layout.remount();
        }
    }
pub fn move_component_up ( & mut self ) { if self . can_move_component_up ( ) { self . layout . components . swap ( self . selected_component , self . selected_component - 1 ) ; self . selected_component -= 1 ; self . layout . remount ( ) ; } }
Moves the selected component up, unless the first component is selected.
Moves the selected component up unless the first component is selected .
&mut self
&mut self