mirror of
https://github.com/ratatui-org/ratatui
synced 2025-02-17 06:28:52 +00:00
[widgets] Fix Row export
This commit is contained in:
parent
d008892e04
commit
ca3308e945
1 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,7 @@ pub use self::sparkline::Sparkline;
|
|||
pub use self::chart::{Chart, Axis, Dataset, Marker};
|
||||
pub use self::barchart::BarChart;
|
||||
pub use self::tabs::Tabs;
|
||||
pub use self::table::Table;
|
||||
pub use self::table::{Table, Row};
|
||||
|
||||
use buffer::Buffer;
|
||||
use layout::Rect;
|
||||
|
@ -60,8 +60,9 @@ pub trait Widget {
|
|||
}
|
||||
/// Helper method that can be chained with a widget's builder methods to render it.
|
||||
fn render<B>(&mut self, t: &mut Terminal<B>, area: &Rect)
|
||||
where Self: Sized,
|
||||
B: Backend
|
||||
where
|
||||
Self: Sized,
|
||||
B: Backend,
|
||||
{
|
||||
t.render(self, area);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue