Addepar / Addepar/ember-table

Add percentage-equal-column Fill Mode

Open
#917 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.