pub fn with_width(w: i32) -> TableOptionExpand description
Creates an option to set table width during construction.
This option configures the horizontal display space for the table, affecting column layout and content wrapping behavior.
§Arguments
w- Width in terminal columns
§Examples
use bubbletea_widgets::table::{Model, with_columns, with_width, Column};
let table = Model::with_options(vec![
with_columns(vec![Column::new("Data", 20)]),
with_width(80),
]);
assert_eq!(table.width, 80);