Adding checkboxes#181
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #181 +/- ##
===========================================
- Coverage 95.86% 90.34% -5.53%
===========================================
Files 23 23
Lines 823 911 +88
Branches 120 130 +10
===========================================
+ Hits 789 823 +34
- Misses 16 70 +54
Partials 18 18
Continue to review full report at Codecov.
|
|
@Tmaster Cool, thanks! I don't have a chance to dive into this feature during these weekends but I'll start looking at it on Monday and give you my feedback ASAP. |
|
HI @rychkog However there is still a little problem and I'm not sure about my solution. I temporary overcame this problem by checking if the node has a defined id, and if it doesn't I send a message to the console. How do you recommend to solve this problem? Thanks, And again, . . I'll add my tests after you approve the feature. |
|
@Tmaster Sorry for being silent so long - has lots of work without a chance to dedicate some time to open-source. |
|
I hope you still believe in a bright future of this project :) |
| private updateIndeterminateStateInternal(): void { | ||
| const checkedChildren = this.tree.children.filter(child => child.isChecked).length; | ||
|
|
||
| if (checkedChildren === 0) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| public isSelected = false; | ||
| public isRightMenuVisible = false; | ||
| public isLeftMenuVisible = false; | ||
| public isChecked = false; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
|
||
|
|
||
| @ViewChild('checkbox') | ||
| _checkboxElement: ElementRef; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| public treeService: TreeService, | ||
| public element: ElementRef) { | ||
| public treeService: TreeService, | ||
| public element: ElementRef) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
|
||
| this.settings = this.settings || { rootIsVisible: true }; | ||
|
|
||
| this.settings = this.settings || { rootIsVisible: true, showCheckboxes: false, enableCheckboxes: true }; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@Tmaster Had a quick look and overall it is cool - will review in a bit more holistic manner today evening (my time - Eastern European Time (Standard Time)) |
| public isSelected = false; | ||
| public isRightMenuVisible = false; | ||
| public isLeftMenuVisible = false; | ||
| public isChecked = false; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
Thanks a lot @rychkog . |
|
No worries - same stuff on my side :) |
Hi,
I almost completed the checkboxes feature and I wanted your opinion (to see if there any necessary changes I should do.)
I'm still experiencing some difficulties with implementing the Indeterminated state of a checkbox. However I wanted to start the merge process to see that everything else is fine.
As soon as you give me the O.K. I will add tests and documentation.
Thanks,
TMaster.