-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
UI: Double clicking on group propagating the checked state #4179
Conversation
Nice idea ! |
afb1652
to
8f25ca1
Compare
Indeed, I can confirm. |
89fbc0b
to
fbad033
Compare
fbad033
to
23815ec
Compare
4f681bf
to
a0e41c9
Compare
@Gustry @nboisteault @mdouchin It is ready for review! |
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.
Tested and approved!
Strange, I can't even try on the "Montpellier" project : @nboisteault Which project did you use ? |
a0e41c9
to
90cd7d1
Compare
My comments above remains valid, I don't have any chekbox to try on the "Montpellier" project. On which project are you trying ? |
The "Montpellier" project activates the option to disabled checkboxes for groups. I am using the "testsrepository/treeview" project. |
Ok, but the first "group" in this project, it doesn't work for me with this PR. |
What do you mean by it doesn't work for me ? |
Freshly load the map http://lizmap.local:8130/index.php/view/map?repository=testsrepository&project=treeview I do only double click |
Thanks. The first double click works, not the second one. |
This PR is a good move, but I'm not 100% convinced by the approach, given the number of feedbacks on this. A double click is "unknown" on a web interface. Fine to discuss |
@nboisteault @Gustry @mdouchin @mind84 @gioman @josemvm @guenterw I proposed the double click to propagate checked status to tree children, but I can implement an other way to do so. What is your prefered way to propagate checked status to tree children:
|
If I understand (translate) it correctly, it is the function that is used in QGIS with Ctrl+click. |
hi @rldhont for LWC >=3.7 we lost the text of the tooltip that is shown when the mouse passes over the layer name in the layer tree and i don't know if that was intentional... regardless of the choice, how do you intend to inform the user of the existence of this functionality? however, i prefer double click |
Yes, if the choice is between what @rldhont exposed this morning, my choice is also with double click as well. I was wondering if the behavior of 3.6 should be back or similar. Let's go with this PR and see.
For now, I'm not sure too. I want to integrate a tutorial like https://github.com/3liz/lizmap-javascript-scripts/tree/master/library/ui/driver_tutorial from @altheaFeu |
One more basic thought about the group checkboxes: On the other hand, it often makes sense to activate all layers of a group. I would currently control this via the QGIS themes. Thus, there is actually the desire to determine the display of the group checkbox per group. @Gustry I think the tutorial is a good idea |
The Lizmap project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 2 months and is being automatically marked as "stale". |
90cd7d1
to
9bf44d3
Compare
The Lizmap project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 2 months and is being automatically marked as "stale". |
When double clicking on a group label or checkbox, the new checked state of the group will be propagated through the tree to all the children.
With this capability, the user will be able to check all the layers contained in a group whatever the depth.