| 1 | use std::borrow::Cow; |
| 2 | |
| 3 | use crate::options::config::flags::TableGap; |
| 4 | |
| 5 | pub struct DataTableProps { |
| 6 | /// An optional title for the table. |
| 7 | pub title: Option<Cow<'static, str>>, |
| 8 | |
| 9 | /// Controls the gap between the header and rows. |
| 10 | pub table_gap: TableGap, |
| 11 | |
| 12 | /// Whether this table determines column widths from left to right. |
| 13 | pub left_to_right: bool, |
| 14 | |
| 15 | /// Whether this table is a basic table. This affects the borders. |
| 16 | pub is_basic: bool, |
| 17 | |
| 18 | /// Whether to show the table scroll position. |
| 19 | pub show_table_scroll_position: bool, |
| 20 | |
| 21 | /// Whether to show a scroll bar on the right edge of the table. |
| 22 | pub show_table_scroll_bar: bool, |
| 23 | |
| 24 | /// Whether to show the current entry as highlighted when not focused. |
| 25 | pub show_current_entry_when_unfocused: bool, |
| 26 | } |