@@ -11,8 +11,9 @@ github with a [breaking change] label.
11
11
This is a quick summary of the sections below:
12
12
13
13
- Unreleased (0.24.1)
14
+ - ` List::new() ` now accepts ` IntoIterator<Item = Into<ListItem<'a>>> `
14
15
- ` Table::new() ` now requires specifying the widths
15
- -` Table::widths() ` now accepts ` IntoIterator<Item = AsRef<Constraint>> `
16
+ - ` Table::widths() ` now accepts ` IntoIterator<Item = AsRef<Constraint>> `
16
17
- Layout::new() now accepts direction and constraint parameters
17
18
- The default ` Tabs::highlight_style ` is now ` Style::new().reversed() `
18
19
@@ -40,6 +41,21 @@ This is a quick summary of the sections below:
40
41
41
42
## Unreleased (v0.24.1)
42
43
44
+ ### ` List::new() ` now accepts ` IntoIterator<Item = Into<ListItem<'a>>> ` ([ #672 ] )
45
+
46
+ [ #672 ] : https://github.com/ratatui-org/ratatui/pull/672
47
+
48
+ Previously ` List::new() ` took ` Into<Vec<ListItem<'a>>> ` . This change will throw a compilation
49
+ error for ` IntoIterator ` s with an indeterminate item (e.g. empty vecs).
50
+
51
+ E.g.
52
+
53
+ ``` rust
54
+ let list = List :: new (vec! []);
55
+ // becomes
56
+ let list = List :: default ();
57
+ ```
58
+
43
59
### The default ` Tabs::highlight_style ` is now ` Style::new().reversed() ` ([ #635 ] )
44
60
45
61
Previously the default highlight style for tabs was ` Style::default() ` , which meant that a ` Tabs `
@@ -53,10 +69,12 @@ Previously the default highlight style for tabs was `Style::default()`, which me
53
69
widget in the default configuration would not show any indication of the selected tab.
54
70
55
71
56
- ### ` Table::new() ` now requires specifying the widths of the columrs (#664 )
72
+ ### ` Table::new() ` now requires specifying the widths of the columns (#664 )
73
+
74
+ [ #664 ] : https://github.com/ratatui-org/ratatui/pull/664
57
75
58
76
Previously ` Table ` s could be constructed without widths. In almost all cases this is an error.
59
- A new widths parameter is now manadatory on ` Table::new() ` . Existing code of the form:
77
+ A new widths parameter is now mandatory on ` Table::new() ` . Existing code of the form:
60
78
61
79
``` rust
62
80
Table :: new (rows ). widths (widths )
0 commit comments