gpui-component/crates/ui
Jason Lee 001b1795f1
table: Refactor TableDelegate to easy to access delegate. (#1712)
Closes #1610, #1583

Closes https://github.com/longbridge/gpui-component/discussions/1707

## Description

This change to improve the `TableDelegate` to have `&mut self` and
`Context<TableState<Self>>` to easy access delegate.

## Break Changes

- The argument types of `render_tr`, `render_td`, `render_th`,
`context_menu`, `render_loading`, `render_empty`,
`render_last_empty_col` in `TableDelegate` has been changed.

```diff
- fn render_th(&self, col_ix: usize, _: &mut Window, _: &mut App) -> impl IntoElement
+ fn render_th(&mut self, col_ix: usize, _: &mut Window, _: &mut Context<TableState<Self>>) -> impl IntoElement
```
2025-12-01 17:20:52 +08:00
..
locales setting: Add Settings component. (#1632) 2025-11-20 13:51:44 +00:00
src table: Refactor TableDelegate to easy to access delegate. (#1712) 2025-12-01 17:20:52 +08:00
tests/fixtures story: Use uniform_list for scroll example. (#1709) 2025-12-01 11:07:29 +08:00
Cargo.toml Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
LICENSE-APACHE chore: Hard link crates/ui/LICENSE-APACHE. 2025-11-04 17:54:14 +08:00