-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Timeline]Support group hierarchy #1934
Comments
I'm not aware of any existing support for that. |
Sounds like an interesting feature request |
@yotamberk
Expected Output is as follows ("v" represents a down-arrow icon):
Actual Output is as follows ("v" represents a down-arrow icon):
Additionally, when I collapse one of the top level nodes (eg. "1.A"), that node moves to the bottom of the list, but all of it's child nodes remain visible. If I attempt to collapse what should be a 3rd level node (which I should not have the opportunity to do), I recieve an error in the console. However, I can collapse the 2nd level nodes, which causes the 3rd level nodes to be hidden. If I collapse all 2nd level nodes before collapsing the 1st level node, then I can collapse the 1st level node and all 2nd level nodes are hidden correctly. If I then expand the 1st level node, the 2nd level nodes remain collapsed, but their arrow icon indicates that they are expanded. If I double click one, it will expand as described in the "Actual Output". Can you please advise if this should be expected to work, if n-level hierarchies are supported, or if I've constructed the groups incorrectly? Thanks. |
The short answer is: No. |
Ah sorry, I had skimmed through your PR but must have missed that. I don't believe it's an absolutely necessary feature for me at the moment, but I envision it becoming one in the future. Thanks for the info! |
I too really need n level nested groups - I am looking at maintenance events for components in machines, in facilities, in divisions. n=4. |
I think in theory, the nth level ordering could be done on when the group was inserted into the data-set. I sort of have this done already but it still only supports out to 2 levels for nested groups. Also waiting on this feature to be done. |
I needed support for arbitrary nesting of groups, so I updated the ordering function to handle arbitrary levels of nesting: #3990 |
* Fix ordering for arbitrarily nested groups Fixes #1934 * Fix linting
@trainman419 Thanks for the fix. I think I am using it correctly, it does provide a better sorting but there still seems to be a bug with folding. This is all nested and normal groups open Then bottom level fold works fine: Only the top level folded: Note that if I leave the bottom level group folded, only the open one shows. BTW: re-opening the top level "Indicatiebesluiten" group will reposition the above "floating" / orphan group in the correct place under its own parent group. One way of looking at it, could be that in principle, the ordering works but the lack of having properly closed lower level groups would cause the glitch of them showing due to being open. I recon this might be solved in one way (not sure if desired way) is to simply force closing of any nested groups that have nested groups (from the perspective of the clicked nesting parent which doesn't have to be top level). It could be done the other way around as well (that unfolding a nesting parent, unfolds any lower nesting parents too). Or to just have the user manually re-open them as desired. I guess the preference would depend on a use-case basis: if I wish to only view 1 nested parents children, having to close all would be a pain but not closing them would mean visual overkill/noise. Those who need "the overview" would likely want all nested groups opened on clicking the parent group. |
@robjens hello, |
Are you aware of timeline-plus? It's @yotamberk's fork of vis TimeLine, supports multi-level groups and the replacement was very smooth in my experience. |
I just went to see, all my problems are solved, thank you very much. |
* Fix ordering for arbitrarily nested groups Fixes almende#1934 * Fix linting
Does the group label support hierarchy which looks like http://dhtmlx.com/docs/products/dhtmlxGantt/01_basic.html
or is there a way base on what we have to let user toggle a group(subgroup)?
The text was updated successfully, but these errors were encountered: