Skip to content

enable fillMode to support an nth-column option#635

Merged
bantic merged 2 commits intoAddepar:masterfrom
c4eo:nth-col-fill-mode
Jul 26, 2019
Merged

enable fillMode to support an nth-column option#635
bantic merged 2 commits intoAddepar:masterfrom
c4eo:nth-col-fill-mode

Conversation

@chbonser
Copy link
Copy Markdown
Contributor

@cyril-sf
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@cyril-sf
Copy link
Copy Markdown
Contributor

@chbonser no problem and thanks for the help!

@billdami
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

fillMode: defaultTo(FILL_MODE.EQUAL_COLUMN),

/**
A configuration that controls how which column shinks (or extends) when `fillMode` is
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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