emilk / emilk/egui

Add horizontal scroll support to Table widget

Open
#2,153 1 comment 1 reaction 0 assignees View on GitHub
feature
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

**Is your feature request related to a problem? Please describe.**

I want to show some data inside the Table widget, my data need about 30 columns, if I just add it with default table it will just expand the parent because currently table don't have any horizontal scroll... Even with expanding I still can't see all the columns, so having a horizontal scroll built-in In Table would be good.

**Describe the solution you'd like**

Adding support for enabling a horizontal scroll in table.

Another thing that I think worth adding is horizontal index in Table rows method (or adding a new method for it that have both) currently rows only have vertical index, having this would help in showing Data that have so many columns.

**Describe alternatives you've considered**

I tested putting `TableBuilder` in `ScrollAres::horizontal` and it did kinda worked, but problem was it moved vertical scroll all the way to the right side... So If I want to access it I need to scroll all the way to right... That's a problem.
One other thing that I tested was changing source of table builder to use `ScrollArea::both` instead of default vertical one, but result was not what I expected, an vertical scroll did appear, but when I try to scroll all the table and columns bugged (the vertical separator move incorrectly and...)

**Additional context**

Well I think having this feature is a fundamental need in a table widget, so I hope it get aaded

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.