mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
[widgets][list] Set the style of the underlying list
This commit is contained in:
parent
d0d2f88346
commit
fcd1b7b187
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ impl<'b> Widget for SelectableList<'b> {
|
|||
.skip(offset as usize);
|
||||
List::new(items)
|
||||
.block(self.block.unwrap_or_default())
|
||||
.style(self.style)
|
||||
.draw(area, buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue