-
-
Notifications
You must be signed in to change notification settings - Fork 19
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: (draghandle) drag handle implementation #79
Conversation
); | ||
}); | ||
|
||
it('hould create an instance', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be "should" and not "hould"
this.handleElement = this.handle?.el?.nativeElement || this.el.nativeElement; | ||
|
||
fromEvent<DragEvent>(this.handleElement, 'mousedown').pipe( | ||
takeUntil(this.destroy$) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍 This takeUntil
is important!
Hi @Alessy. Wow. Thx a lot. The changes look good. I left one small comment because of a typo. Would be great if you could fix this typo and then we can merge. Great work 👍 |
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
- Coverage 93.93% 93.40% -0.54%
==========================================
Files 9 10 +1
Lines 264 273 +9
Branches 25 26 +1
==========================================
+ Hits 248 255 +7
- Misses 16 18 +2
Continue to review full report at Codecov.
|
🎉 This PR is included in version 5.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Drag handle implementation (like cdkDragHandle).
I and a few people wanted this feature, so here it is :)
The only problem is that I don't know how to write test scenarios in ngsg-item.directive.spec.ts