Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable fillMode to support an nth-column option #635

Merged
merged 2 commits into from
Jul 26, 2019

Conversation

chbonser
Copy link
Contributor

@cyril-sf
Copy link
Contributor

cyril-sf commented Apr 24, 2019

@chbonser sorry for the delay.

It seems like a good option. Could you update your PR now that we don't use ES classes and decorators?

It would be a good thing to refactor the code so that first-column and last-column simply rely on the implementation of nth-column (but we would keep the options). Could you take a stab at it?

@chbonser
Copy link
Contributor Author

@cyril-sf Yes. I can make those changes. It will be a few weeks though...

@cyril-sf
Copy link
Contributor

@chbonser no problem and thanks for the help!

@billdami
Copy link

billdami commented Jul 9, 2019

would love to see this merged in. I could possibly help out getting this across the finish line if you still don't have the bandwidth to work on it @chbonser ?

@chbonser
Copy link
Contributor Author

chbonser commented Jul 19, 2019 via email

@chbonser chbonser force-pushed the nth-col-fill-mode branch from a97cdc6 to 3861c1e Compare July 23, 2019 20:19
@chbonser
Copy link
Contributor Author

@cyril-sf I've rebased and updated the fill mode implementation to reuse the resize implementation across all single column fill modes. The behavior of the preexisting modes remains unchanged so this is a non-breaking addition.


@argument fillMode
@type string? ('equal-column')
*/
fillMode: defaultTo(FILL_MODE.EQUAL_COLUMN),

/**
A configuration that controls how which column shinks (or extends) when `fillMode` is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A configuration that controls how which column shinks (or extends) when `fillMode` is
A configuration that controls which column shrinks (or extends) when `fillMode` is

/**
A configuration that controls how which column shinks (or extends) when `fillMode` is
'nth-column'. This is zero indexed.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the autogenerated API docs can you add:

@argument fillColumnIndex
@type number?

@cyril-sf
Copy link
Contributor

@chbonser no need to apologize, we appreciate the extra effort!

@bantic bantic merged commit 2cf07a6 into Addepar:master Jul 26, 2019
@bantic
Copy link
Contributor

bantic commented Jul 31, 2019

released in v2.1.0, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants