preiter93 / tui-widget-list

A widget list implementation for the ratatui ecosystem
MIT License
18 stars 5 forks source link

Add support for horizontal scroll #10

Closed preiter93 closed 7 months ago

preiter93 commented 7 months ago

This might be a breaking change, because there is only 1 ListableWidget trait. It should be allowed to use the same widget in a vertical and horizontal list. For this either a new trait must be added which is non breakint, or the current one extended. I would go with the latter, and would extend the main_axis_size method with an input parameter main_axis_direction. With this the user can match on the direction if he wants or omit it.

preiter93 commented 7 months ago

Implemented in https://github.com/preiter93/tui-widget-list/pull/12