pub fn with_focused(f: bool) -> TableOptionExpand description
Creates an option to set table focus state during construction.
This option configures whether the table should be focused (and thus respond to keyboard input) when initially created.
§Arguments
f-truefor focused,falsefor unfocused
§Examples
use bubbletea_widgets::table::{Model, with_focused};
let table = Model::with_options(vec![
with_focused(false),
]);
assert!(!table.focus);