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

feat(repeater-native): add empty content #26

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Andries-Smit
Copy link
Contributor

@Andries-Smit Andries-Smit commented Feb 7, 2023

This PR contains

  • Feature

What is the purpose of this PR?

Repeaters show a list with values; when there is no value, often users require a hint/message that there is no data available.

This PR enables the user to configure the content shown when the list is empty. This simplifies the modelling.
Similar to the Gallery Widget https://github.com/mendix/native-widgets/blob/main/packages/pluggableWidgets/gallery-native/src/Gallery.xml#L59

Before this PR. You have to create a surrounding context, counting the results in advance. The context needed to be refreshed when the count changed to 0.

We use this widgets in many place, as the other data container widget like list view and repeater are not usable inside a scroll container, because the generate errors: VirtualizedLists should never be nested inside plain ScrollViews

@Andries-Smit Andries-Smit requested a review from a team as a code owner February 7, 2023 13:50
@moo-team moo-team added the Widget label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants