If I use your example:
- I would expect all labels to be shown, and hidden only when their parent is folded
- Parents, Sub Tasks and Sub Sub tasks have different styles (let's say, bold, normal and italic)
- Parents and Sub Tasks with children are clickable (a simple arrow pointing down to mark them as different for instance) and this causes said children to be shown/hidden
- Clicking on a Parent un/folds everything (now Ideally, it would unfold showing the Sub Tasks in the "state" they were before being folded, meaning that if some were folded, and others weren't, they are in this state again. But since we are only using 3 levels max, I believe showing all Sub Tasks in a folded state wouldn't be much of an issue.
- For multiple tasks per line, I believe the index is currently based on their instantiation order. I think it could be a great plus to simply bring to front any clicked task (though we run the risk of hiding a milestone behind a task). I guess we would need some kind of parameter like "completed" that takes two decimal values (start and finish) between 0 and 1 corresponding to the "area", in percentage, of the task that should be "stripped" if that makes sense, that would be ideal. Say we have
[---A---] and [---B---], should B be moved over A, we could see something link [---A-[//-B---]
|-- Parent 1
...|-- Sub 1
......|-- Sub Sub 1
...|-- Sub 2
|-- Parent 2
...|-- Sub 1
clicking on Parent 1 gives
|-- Parent 1
|-- Parent 2
...|-- Sub 1
clicking on Parent 1 again gives
|-- Parent 1
...|-- Sub 1
......|-- Sub Sub 1
...|-- Sub 2
|-- Parent 2
...|-- Sub 1
OR, in case "remembering" the states of children (folded or not) is too annoying, every children is shown as folded by default (that is just my personal choice, but if that was configurable,
|-- Parent 1
...|-- Sub 1 (folded)
...|-- Sub 2
|-- Parent 2
...|-- Sub 1
Sorry Jon, I expected to receive some kind of notification and therefore didn't come back to check.
demo with subtasks: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/gantt/demo/subtasks/
demo with multiple tasks per line: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/gantt/demo/interactive-gantt/
If I use your example:
- I would expect all labels to be shown, and hidden only when their parent is folded
- Parents, Sub Tasks and Sub Sub tasks have different styles (let's say, bold, normal and italic)
- Parents and Sub Tasks with children are clickable (a simple arrow pointing down to mark them as different for instance) and this causes said children to be shown/hidden
- Clicking on a Parent un/folds everything (now Ideally, it would unfold showing the Sub Tasks in the "state" they were before being folded, meaning that if some were folded, and others weren't, they are in this state again. But since we are only using 3 levels max, I believe showing all Sub Tasks in a folded state wouldn't be much of an issue.
- For multiple tasks per line, I believe the index is currently based on their instantiation order. I think it could be a great plus to simply bring to front any clicked task (though we run the risk of hiding a milestone behind a task). I guess we would need some kind of parameter like "completed" that takes two decimal values (start and finish) between 0 and 1 corresponding to the "area", in percentage, of the task that should be "stripped" if that makes sense, that would be ideal. Say we have
[---A---] and [---B---], should B be moved over A, we could see something link [---A-[//-B---]
|-- Parent 1
...|-- Sub 1
......|-- Sub Sub 1
...|-- Sub 2
|-- Parent 2
...|-- Sub 1
clicking on Parent 1 gives
|-- Parent 1
|-- Parent 2
...|-- Sub 1
clicking on Parent 1 again gives
|-- Parent 1
...|-- Sub 1
......|-- Sub Sub 1
...|-- Sub 2
|-- Parent 2
...|-- Sub 1
OR, in case "remembering" the states of children (folded or not) is too annoying, every children is shown as folded by default (that is just my personal choice, but if that was configurable,
|-- Parent 1
...|-- Sub 1 (folded)
...|-- Sub 2
|-- Parent 2
...|-- Sub 1