-
Notifications
You must be signed in to change notification settings - Fork 4
Properly disable dragging on and left of a locked column #72
Conversation
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
+ Coverage 99.82% 99.82% +<.01%
==========================================
Files 10 10
Lines 570 585 +15
Branches 83 87 +4
==========================================
+ Hits 569 584 +15
Misses 1 1
Continue to review full report at Codecov.
|
const siblingDiv = sibling.querySelector('div'); | ||
let isLeftOfLocked = false; | ||
|
||
for (let i = (columns.length - 1); i >= 0; i--) { |
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.
Any chance we could encapsulate this logic so its not repeated? Maybe something named isLeftOfLocked()
that returns a boolean?
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.
@Blackbaud-AlexKingman done.
}); | ||
} | ||
|
||
public setStyle(el: ElementRef, style: string, value: string): void { | ||
this.renderer.setStyle(el.nativeElement, style, value); | ||
} | ||
|
||
private isLeftOfLocked(sourceColumn: HTMLElement, columns: NodeListOf<Element>) { |
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.
Needs return type :)
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.
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.
LGTM
No description provided.