Expand description
Table component for displaying tabular data.
This module provides a table widget with keyboard navigation for TUI applications.
§Example
use bubbles::table::{Table, Column};
let columns = vec![
Column::new("ID", 10),
Column::new("Name", 20),
Column::new("Status", 15),
];
let rows = vec![
vec!["1".into(), "Alice".into(), "Active".into()],
vec!["2".into(), "Bob".into(), "Inactive".into()],
];
let table = Table::new()
.columns(columns)
.rows(rows);Structs§
- Column
- A single column definition for the table.
- KeyMap
- Key bindings for table navigation.
- Styles
- Styles for the table.
- Table
- Table model for displaying tabular data with keyboard navigation.
Type Aliases§
- Row
- A row in the table (vector of cell values).