Add percentage-equal-column Fill Mode
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 351
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 1
Description
Hi, I have need for an ember table which uses an equal-column fill mode on a percentage basis, e.g.:
['100px', '100px', '200px'] and inserting a new element with width ['100px'] for a table which is exactly 400px should yield these sizes:
['80px', '80px', '160px', '80px']
Currently, it'll pull equally from all regardless of size, yielding:
['66px', '67px', '167px', '100px'] or ['75px', '75px', '175px', '75px'] (not sure on the exact addition logic - it's pretty messy for my purposes.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing ember-table fill-mode and column-width allocation logic, then inspect any related tests. Implement a percentage-based equal-column mode so inserting a 100px column into [100px, 100px, 200px] in a 400px table produces [80px, 80px, 160px, 80px], and add coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100