Skip to content

Commit

Permalink
chore(table): cleanup docs and builder methods (#638)
Browse files Browse the repository at this point in the history
- Refactor the `table` module for better top to bottom readability by
putting types first and arranging them in a logical order (Table, Row,
Cell, other).

- Adds new methods for:
  - `Table::rows`
  - `Row::cells`
  - `Cell::new`
  - `Cell::content`
  - `TableState::new`
  - `TableState::selected_mut`

- Makes `HighlightSpacing::should_add` pub(crate) since it's an internal
  detail.

- Adds tests for all the new methods and simple property tests for all
  the other setter methods.
  • Loading branch information
joshka committed Dec 13, 2023
1 parent aaeba27 commit d118565
Showing 1 changed file with 1,106 additions and 362 deletions.

0 comments on commit d118565

Please sign in to comment.