Skip to content

Releases: preiter93/tui-widget-list

v0.13.1

22 Dec 15:12
Compare
Choose a tag to compare

More flexible listbuilder lifetimes by @nmandrus1

v0.13.0

21 Oct 12:46
Compare
Choose a tag to compare

Bump ratatui to v0.29.0

v0.12.2

15 Sep 14:06
4049117
Compare
Choose a tag to compare

ListView::scroll_padding added. Allows to keep a specified number of cells above/below the selected widget visibile while scrolling.

ListState::circular got removed. Use ListView::infinite_scrolling instead.

v0.12.1

25 Aug 12:22
Compare
Choose a tag to compare

Change scroll up behaviour - keep first element truncated if possible

v0.12.0

17 Aug 16:26
f2fd09e
Compare
Choose a tag to compare

Bump ratatui to v0.28

v0.11.0

10 Aug 15:47
Compare
Choose a tag to compare
  • Introduces ListView, ListBuilder and ListBuildContext as replacement for List, PreRender and PreRenderContext.
  • List, PreRender and PreRenderContext are marked as deprecated.

v0.10.1

28 Jul 07:50
Compare
Choose a tag to compare

Implement Styled for List (contributor: airblast-dev)

v0.10.0

27 Jun 20:10
Compare
Choose a tag to compare

Bump ratatui to v0.27

v0.9.0

11 May 07:54
Compare
Choose a tag to compare
  • Introduced PreRender trait as a replacement for ListableWidget.
    • This change is non-breaking
    • It provides a more concise and clearer interface.
      Migration Guide
  • Update trait implementations to use the new pre_render signature:
fn pre_render(&mut self, context: &PreRenderContext) -> u16 {
    let main_axis_size = // The widgets size in the main axis

    if context.is_selected {
        self = // You can modify the selected item here
    }

    main_axis_size
}
  • Deprecated ListState::selected(). Use the struct field selected instead.
  • Updated examples
  • Add example for long lists

v0.8.3

01 May 06:54
Compare
Choose a tag to compare

Fix: Missing base style on truncated items