Skip to content

Checking if child has children in Style #12

@jakirkham

Description

@jakirkham

Would be nice if there was a way to check if a child will have children or not through some mechanism in Style. Not entirely sure what that would be yet, but it would be really handy for handling cases like opening and closing tags.

To provide a concrete example, am trying to generate some HTML and CSS to make a visualization like this one (item 4) The HTML code being generated needs to look something like this. So would want to be able to add <li>/</li> tags based on whether children are present or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions