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

Add Sort buttons to Angular Material ArrayLayoutRenderer and TableRenderer #2038

Merged

Conversation

fredjohnd
Copy link
Contributor

@fredjohnd fredjohnd commented Oct 25, 2022

This adds Sort functionality to Angular Material package, as long as options.showSortButtons is True.

This is my first PR for this project, so please let me know if something is not quite right.

Test coverage added as well as example in packages/examples.

imagem

@CLAassistant
Copy link

CLAassistant commented Oct 25, 2022

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Nov 1, 2022

Coverage Status

Coverage decreased (-1.6%) to 83.286% when pulling ea20343 on fredjohnd:angular-material-sort-buttons into 7206141 on eclipsesource:master.

@sdirix sdirix requested review from lucas-koehler and removed request for sdirix November 7, 2022 10:19
Copy link
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

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

Hi @fredjohnd , thank you very much for your contribution :) The changes generally look good to me. Would it be possible to add an example for an array with detail? You could either add it to your new example or add another one.
The reason to have this in an example is that it's currently not possible to test the sort buttons of an array with detail in the examples. For a schema and uischema, you can have a look at packages/examples/src/examples/arrays-with-detail.ts

packages/examples/src/examples/arrays-with-sorting.ts Outdated Show resolved Hide resolved
@lucas-koehler lucas-koehler merged commit f6a6e1b into eclipsesource:master Nov 7, 2022
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.

None yet

4 participants