feat(widget): add width() to ListItem (#17)

Co-authored-by: Nicholas Howard <nicholas.howard@novatechautomation.com>
This commit is contained in:
Orhun Parmaksız
2023-02-18 04:09:32 +02:00
committed by GitHub
parent e49cb1126b
commit e15a6146f8

View File

@@ -51,6 +51,10 @@ impl<'a> ListItem<'a> {
pub fn height(&self) -> usize {
self.content.height()
}
pub fn width(&self) -> usize {
self.content.width()
}
}
/// A widget to display several items among which one can be selected (optional)