pub fn new_binding(opts: Vec<BindingOpt>) -> BindingExpand description
Creates a new binding from options - Go compatibility function.
This function provides Go-style binding creation using a vector of options.
It’s equivalent to calling Binding::new_binding() but provides a more
functional programming style interface.
§Arguments
opts- A vector of builder options to configure the binding
§Examples
use bubbletea_widgets::key::{new_binding, with_keys_str, with_help};
let save_binding = new_binding(vec![
with_keys_str(&["ctrl+s", "f2"]),
with_help("ctrl+s", "Save the current file"),
]);