Skip to content

feat(core): Repeater multiple item templates implementation#8981

Merged
NathanWalker merged 5 commits into
NativeScript:masterfrom
CatchABus:repeater-templates
Oct 27, 2020
Merged

feat(core): Repeater multiple item templates implementation#8981
NathanWalker merged 5 commits into
NativeScript:masterfrom
CatchABus:repeater-templates

Conversation

@CatchABus
Copy link
Copy Markdown
Contributor

@CatchABus CatchABus commented Oct 22, 2020

PR Checklist

What is the current behavior?

Repeater does not support multiple item templates. This is a quite a limitation for NativeScript Core since it does not support any other iteration methods.

What is the new behavior?

This is my previous patch with further improvements and additions along with NativeScript 7 support.
Repeater will support multiple item templates using keys, just like ListView.
This time I included tests along with ui sample to provide a full solution.

Implements/Closes #3781 .

If issues occur, we can discuss about how to improve this feature. :)

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

2 similar comments
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

The cla-bot has been summoned, and re-checked this pull request!

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

The cla-bot has been summoned, and re-checked this pull request!

@CatchABus
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 22, 2020

The cla-bot has been summoned, and re-checked this pull request!

@cla-bot cla-bot Bot added the cla: yes label Oct 22, 2020
@CatchABus
Copy link
Copy Markdown
Contributor Author

CatchABus commented Oct 22, 2020

I apologize for this spam of cla-bot. I fixed commit author details and CLA problem is gone.
If it's possible to delete few of cla-bot posts, it would be awesome.

EDITED: About travis-ci failing, I see there is an irrelevant error that also occurs on other newest PRs.

@CatchABus CatchABus changed the title feat: Repeater multiple item templates implementation feat(core): Repeater multiple item templates implementation Oct 23, 2020
Copy link
Copy Markdown
Contributor

@NathanWalker NathanWalker left a comment

Choose a reason for hiding this comment

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

Great work @dimitrisrk thank you.

Comment thread package.json Outdated
Comment thread apps/automated/package.json Outdated
Comment thread apps/ui/package.json Outdated
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Oct 26, 2020

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Dimitris - Rafail Katsampas.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot cla-bot Bot removed the cla: yes label Oct 26, 2020
@cla-bot cla-bot Bot added the cla: yes label Oct 26, 2020
@CatchABus
Copy link
Copy Markdown
Contributor Author

@NathanWalker All done, thank you very much for guidance!

@NathanWalker NathanWalker merged commit b113f19 into NativeScript:master Oct 27, 2020
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.

[Feature Request] Support multiple item templates within Repeater

2 participants