pub fn on_submit<F>(self, cb: F) -> Self
    where
        F: Fn(&mut Cursive, PathBuf) + 'static,
    {
        self.with(|t| t.set_on_submit(cb))
    }
/// Sets a callback to be used when `<Enter>` is pressed while a file
/// is selected.
///
/// Chainable variant.
///
/// # Example
///
/// ```rust
/// # extern crate cursive;
/// # extern crate cursive_tree_view;
/// # use cursive::Cursive;
/// # use cursive_tree_view::FileView;
/// # use std::path::PathBuf;
/// # fn main() {
/// # let mut fileview = FileView::new();
/// fileview.on_submit(|siv: &mut Cursive, path: PathBuf| {
///		println!("Path: {:?}", path)
/// });
/// # }
/// ```
Sets a callback to be used when `` is pressed while a file
is selected.

Chainable variant.
Sets a callback to be used when ` ` is pressed while a file is selected . Chainable variant .
pub fn on_submit<F>(self, cb: F) -> Self
    where
        F: Fn(&mut Cursive, PathBuf) + 'static,
    {
        self.with(|t| t.set_on_submit(cb))
    }
pub fn on_submit < F > ( self , cb : F ) -> Self where F : Fn ( & mut Cursive , PathBuf ) + ' static , { self . with ( | t | t . set_on_submit ( cb ) ) }
Sets a callback to be used when `<Enter>` is pressed while a file
is selected.
Sets a callback to be used when ` <Enter > ` is pressed while a file is selected .
self
cb
F
self
cb
F
example
None
extern crate cursive;
None
extern crate cursive_tree_view;
None
use cursive::cursive;
None
use cursive_tree_view::fileview;
None
use std::path::pathbuf;
None
fn main() {
None
let mut fileview = fileview::new();
fileview.on_submit(|siv: &mut Cursive, path: PathBuf| {
println!("Path: {:?}", path)
}).
fileview . on_submit ( |siv : &mut Cursive path : PathBuf| { println! ( " Path : { : ? } " path ) } ) .
}
None