Handle first child specially#11
Conversation
These are handy when the first child in the set needs to be handled specially.
|
Still need to resolve the case of having only one child. Namely does it go through first or last or possibly both and why. |
For handling the case where only one child exists for this (sub)tree.
|
Made the only child case a special case that can also be overridden. |
|
Also updated all styles to define these functions in a way that is compatible with their existing behavior. |
|
While this technically works and passes the tests, I'm not sure that it is helpful for solving my problem yet. Am trying to generate some HTML and CSS to make a visualization like this one (item 4) The code being generated needs to look something like this, but was having a hard time getting that behavior out of these functions. Ended up rolling my own function, but it would be better if that wasn't necessary. |
|
Opened issue ( #12 ) based on the last point. Namely handling cases of having or not having children specially. |
Closes #10
Adds
first_child_headandfirst_child_tailtoStyleand implements them in a compatible way forBoxStyle. UpdatesLeftAlignedto handle the first child with these special methods.