summaryrefslogtreecommitdiffstats
path: root/src/canvas/tui_widgets/data_table/props.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/canvas/tui_widgets/data_table/props.rs')
-rw-r--r--src/canvas/tui_widgets/data_table/props.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/canvas/tui_widgets/data_table/props.rs b/src/canvas/tui_widgets/data_table/props.rs
new file mode 100644
index 00000000..66d3a4f0
--- /dev/null
+++ b/src/canvas/tui_widgets/data_table/props.rs
@@ -0,0 +1,21 @@
+use std::borrow::Cow;
+
+pub struct DataTableProps {
+ /// An optional title for the table.
+ pub title: Option<Cow<'static, str>>,
+
+ /// The size of the gap between the header and rows.
+ pub table_gap: u16,
+
+ /// Whether this table determines column widths from left to right.
+ pub left_to_right: bool,
+
+ /// Whether this table is a basic table. This affects the borders.
+ pub is_basic: bool,
+
+ /// Whether to show the table scroll position.
+ pub show_table_scroll_position: bool,
+
+ /// Whether to show the current entry as highlighted when not focused.
+ pub show_current_entry_when_unfocused: bool,
+}