mirror of
https://github.com/ratatui-org/ratatui
synced 2025-02-16 22:18:51 +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);
|
.skip(offset as usize);
|
||||||
List::new(items)
|
List::new(items)
|
||||||
.block(self.block.unwrap_or_default())
|
.block(self.block.unwrap_or_default())
|
||||||
|
.style(self.style)
|
||||||
.draw(area, buf);
|
.draw(area, buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue