Jason Lee
19bb5eee3a
Fix clippy warnings and fix CI to fail when have warnings. ( #301 )
2024-10-03 10:46:02 +08:00
Jason Lee
ce10a0340c
table: Set fixed height to table head to fix some case table head disappear bug. ( #300 )
...
Closes #299
- Improved sort icon to better color.
- Improved table story.
- Disable `horizontal_scroll_handle.scroll_to_item` on select_col, there
have a bug need to fix.
2024-10-03 10:14:44 +08:00
Jason Lee
fecb2170a8
table: Fix table sort icon display. ( #296 )
...
- Update first sort behaviour to `descending`.
2024-10-02 22:31:38 +08:00
Jason Lee
13e42dfac3
table: Add to support fixed column on left to Table. ( #295 )
...
- Update table details, fix table head height.
- Add `table_row_border` theme color and use this for row border.
## Demo
https://github.com/user-attachments/assets/91df4b9d-f079-4ddb-b14d-fbcf303dcc44
Fix #292
2024-10-02 22:02:21 +08:00
ihavecoke
b9e7217662
table: Add refresh method to Table, for reload table use when the columns or rows has been updated. ( #293 )
2024-10-02 17:29:50 +08:00
Jason Lee
69e94cce1c
table: Add size to Table to support Large, Medium(default), Small, XSmall. ( #283 )
...
Closes #219
2024-09-27 14:45:52 +08:00
Jason Lee
76be7a8ed8
table: Add horizontal scrollbar to Table. ( #278 )
2024-09-27 13:48:46 +08:00
xda
1e44b5659f
table: Render table stripe on background even there is no enough rows ( #256 )
...
<img width="1202" alt="image"
src="https://github.com/user-attachments/assets/57a744c3-673a-4118-ba97-03837b0b9390 ">
- And add `flex_shrink_0` to table head.
Fix https://github.com/huacnlee/gpui-component/issues/160
---------
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2024-09-24 22:07:27 +08:00
xda
89414e1c3c
table: Toggle stripe and number of rows in Table Story ( #259 )
...

2024-09-23 11:58:16 +08:00
Jason Lee
2c469da55a
Update GPUI and apply opacity feature. ( #215 )
2024-09-04 19:29:51 +08:00
ihavecoke
fd2f5e46f2
Securely handle table load more subtract logic to prevent attempt to subtract with overflow panic ( #189 )
2024-08-29 23:29:26 +08:00
Jason Lee
237b0f6956
table: Add load_more delegate method and called when scrolled near the bottom. ( #183 )
...
https://github.com/user-attachments/assets/03001a21-6a3d-4c06-a00c-9dea8208e357
2024-08-28 15:12:42 +08:00
Jason Lee
4490618c4a
Update table to support to support toggle col selection. ( #159 )
...
- Add `border` method to enable/disable border, default: `true`.
- Update `stripe` default to false.
- Update theme to remove table head color, just use window bg like.
<img width="1263" alt="image"
src="https://github.com/user-attachments/assets/2e0994a9-7172-4812-a0e2-3b3ba4281112 ">
Closes #155
2024-08-16 14:34:53 +08:00
Floyd Wang
1da82c5453
Do not show the scrollbar when table is empty ( #143 )
2024-08-14 11:13:42 +08:00
Floyd Wang
ccad5cd98e
TableDelegate support render_empty (#142 )
2024-08-14 11:01:57 +08:00
Jason Lee
63f333d8ad
Add Drawer ( #137 )
...
- Update scrollable to accept EntityId.
https://github.com/user-attachments/assets/a6c02890-3a6e-4b82-b5c5-3f0a48f35368
2024-08-13 16:01:52 +08:00
Jason Lee
7d309acd2f
Improve Table head to not show selected bg and remove drag border color. ( #134 )
...
https://github.com/user-attachments/assets/0836014d-9240-4e77-9daf-dd1ef8d81cd5
2024-08-11 21:25:41 +08:00
Jason Lee
bb6d8d8f60
Cleanup first version impls ( #132 )
2024-08-11 14:46:55 +08:00
Floyd Wang
e784f98a38
TableDelegate methods return ViewContext<Table<Self>> ( #101 )
2024-08-02 16:38:48 +08:00
Floyd Wang
c91f71ae21
Table support render_tr and stripe methods ( #94 )
2024-08-01 10:17:21 +08:00
Floyd Wang
35c3b13bdd
Fix typo in table
2024-07-31 15:34:36 +08:00
Jason Lee
8aaeb9383d
Fix dropdown click to lose focus. ( #80 )
2024-07-29 19:00:17 +08:00
Jason Lee
a3df086e79
theme: Fix list, table theme colors. ( #79 )
...
- Fix list, table theme colors.
- Fix table hover bg.
- Add avatar to table list.
- Update dropdown Size:Small style.
2024-07-29 13:52:45 +08:00
Jason Lee
01aa9401c5
resizable: Fix resizable handle to keep showing drag style on dragging. ( #78 )
...
https://github.com/user-attachments/assets/a8d2abcb-9122-4060-bfd6-2673903c18a1
2024-07-29 10:01:22 +08:00
Jason Lee
15e9804f08
table: Add sort button to table column. ( #77 )
...
https://github.com/user-attachments/assets/d6a3dc9b-758f-4108-8d1d-d8a3d2dc0dc2
2024-07-28 23:24:55 +08:00
Jason Lee
7bfdfcb2ec
table: Add drag to move col. ( #76 )
...
https://github.com/user-attachments/assets/9964f3da-0376-4b53-b64e-c9652c324aa3
2024-07-28 22:20:23 +08:00
Jason Lee
79958fc95c
Add to support Table column resizing. ( #75 )
...
https://github.com/user-attachments/assets/d56f2cd7-df08-437b-9eea-849d68094e1f
2024-07-28 00:51:37 +08:00
Jason Lee
0fdf7be40d
Fix table scrollbar display layer.
2024-07-17 23:19:03 +08:00
Jason Lee
2b184ca8d5
New Scrollbar ( #33 )
...
https://github.com/user-attachments/assets/30d890bc-49cc-4abe-8652-387ddbb73198
2024-07-16 12:00:51 +08:00
Jason Lee
a02c981b74
table: Fix incorrect column selection bg render.
2024-07-08 09:47:13 +08:00
Jason Lee
9b51a5b998
Remove picker, add list instead. ( #17 )
2024-07-07 02:07:17 +08:00
Jason Lee
3c52d5f428
Rename ScrollableHandleElement to ScrollableMask.
2024-07-06 22:31:51 +08:00
Jason Lee
ac789b2379
Add Table ( #16 )
...
https://github.com/huacnlee/gpui-component/assets/5518/8603cbcc-c416-4d10-84a0-8cfe2e021e1a
2024-07-06 21:01:16 +08:00