ratatui/tests
Josh McKinney 36d8c53645
fix(table): widths() now accepts AsRef<[Constraint]> (#628)
This allows passing an array, slice or Vec of constraints, which is more
ergonomic than requiring this to always be a slice.

The following calls now all succeed:

```rust
Table::new(rows).widths([Constraint::Length(5), Constraint::Length(5)]);
Table::new(rows).widths(&[Constraint::Length(5), Constraint::Length(5)]);

// widths could also be computed at runtime
let widths = vec![Constraint::Length(5), Constraint::Length(5)];
Table::new(rows).widths(widths.clone());
Table::new(rows).widths(&widths);
```
2023-11-15 12:34:02 -08:00
..
backend_termion.rs feat(terminal)!: add inline viewport (#114) 2023-04-17 14:23:50 +02:00
border_macro.rs feat(border): add border! macro for easy bitflag manipulation (#11) 2023-05-21 15:26:39 -07:00
stylize.rs feat(stylize): allow all widgets to be styled (#289) 2023-07-14 08:37:30 +00:00
terminal.rs feat(buffer): deprecate Cell::symbol field (#624) 2023-11-11 21:43:51 -08:00
widgets_barchart.rs feat(barchart): Add direction attribute. (horizontal bars support) (#325) 2023-08-24 22:26:15 +00:00
widgets_block.rs fix(title): remove default alignment and position (#323) 2023-07-17 10:27:58 +00:00
widgets_calendar.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_canvas.rs chore: Minor lints, making Clippy happier (#189) 2023-05-21 20:45:37 -07:00
widgets_chart.rs test(buffer): allow with_lines to accept Vec<Into<Line>> (#494) 2023-09-12 11:53:43 -07:00
widgets_gauge.rs fix(gauge): fix gauge widget colors (#572) 2023-10-19 04:29:53 -07:00
widgets_list.rs chore(spans): remove deprecated Spans type (#426) 2023-09-19 02:58:52 -07:00
widgets_paragraph.rs chore(spans): remove deprecated Spans type (#426) 2023-09-19 02:58:52 -07:00
widgets_table.rs fix(table): widths() now accepts AsRef<[Constraint]> (#628) 2023-11-15 12:34:02 -08:00
widgets_tabs.rs chore(spans): remove deprecated Spans type (#426) 2023-09-19 02:58:52 -07:00