with_height

Function with_height 

Source
pub fn with_height(h: i32) -> TableOption
Expand description

Creates an option to set table height during construction.

This option configures the vertical display space for the table, affecting how many rows are visible and viewport scrolling behavior.

§Arguments

  • h - Height in terminal lines

§Examples

use bubbletea_widgets::table::{Model, with_height};

let table = Model::with_options(vec![
    with_height(25),
]);
assert_eq!(table.height, 25);