Skip to content

Conversation

@rap2hpoutre
Copy link
Contributor

See: #515 (comment)

The prop is a string to be consistent with missingLabel, filterLabel, etc. It's called *Label for the same reason. Still, I can edit the PR and change behavior.

Copy link
Contributor

@metagrover metagrover left a comment

Choose a reason for hiding this comment

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

Hi @rap2hpoutre, this looks good overall. 👌

One minor issue - this only supports string types. Please refer the title prop usage in this component, where we take both string and JSX inputs. Having JSX inputs will offer more customisability.

We will need to apply the same for SingleList, SingleDropdownList and MultiDropdownList as well

@rap2hpoutre
Copy link
Contributor Author

@metagrover Thank you for your review. 👍

I'm not sure to understand:

title prop is of type title. Do you want me to change the type of loadMoreLabel to title? (that sounds a bit strange to me, that's why I feel like I misunderstood something :) !).

I checked types here: https://github.com/appbaseio/reactivecore/blob/master/src/utils/types.js and saw that title is:

title: oneOfType([string, any]),

Do you want me to create a new label type in another PR on this other repo before?

I'm a bit lost 😅

@metagrover
Copy link
Contributor

@rap2hpoutre You can use title type with loadMoreLabel.

@rap2hpoutre
Copy link
Contributor Author

@metagrover Done!

Copy link
Contributor

@metagrover metagrover left a comment

Choose a reason for hiding this comment

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

Awesome 💯

Now, it would be great if you can replicate this on SingleList, SingleDropdownList and MultiDropdownList.

@rap2hpoutre
Copy link
Contributor Author

@metagrover Done! 🎉

Copy link
Contributor

@divyanshu013 divyanshu013 left a comment

Choose a reason for hiding this comment

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

Looks good, could you also update the typings files please? Each component has its own .d.ts file. You could use the same typing from title

@rap2hpoutre
Copy link
Contributor Author

@divyanshu013 @metagrover Done.

@metagrover metagrover merged commit f158e2c into appbaseio:dev Sep 28, 2018
@metagrover
Copy link
Contributor

@rap2hpoutre Thanks for contributing 🤝

piwel added a commit to piwel/reactive-manual that referenced this pull request Aug 27, 2019
@davidkong0987
Copy link

how are loadMore and handleLoadMore used in ReactiveList? They seem like interesting properties but I couldn't find much on them.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants