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(typeahead): add sort functionality to typeahead #5646

Merged

Conversation

IraErshova
Copy link
Contributor

@IraErshova IraErshova commented Feb 6, 2020

Add sort functionality to typeahead

Close #4808

This PR depends on #5651

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

daniloff200
daniloff200 previously approved these changes Feb 6, 2020
@@ -402,7 +408,7 @@ export class TypeaheadDirective implements OnInit, OnDestroy {
);
})
)
.subscribe((matches: TypeaheadMatch[]) => {
.subscribe((matches: any[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

according to chat with @IraErshova , there will be separate PR for fix of types in typeahead, because, this TypeaheadMatch type here was not exactly correct

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your comment!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codecov
Copy link

codecov bot commented Feb 6, 2020

Codecov Report

Merging #5646 into development will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #5646   +/-   ##
============================================
  Coverage        52.52%   52.52%           
============================================
  Files                3        3           
  Lines               99       99           
  Branches            17       17           
============================================
  Hits                52       52           
  Misses              37       37           
  Partials            10       10

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 952be76...7f4237d. Read the comment docs.

@dmitry-zhemchugov
Copy link
Contributor

dmitry-zhemchugov commented Feb 12, 2020

@IraErshova Needs clarification regarding the name of Demo and classes

@IraErshova
Copy link
Contributor Author

@IraErshova Needs clarification regarding the name of Demo and classes

@dmitry-zhemchugov I fixed this

@daniloff200 daniloff200 merged commit d80bdfd into valor-software:development Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order results when using typeahead from ngx-bootstrap?
3 participants