Skip to content

[feature request] Allow map to be partially un-collapsed by default #64

@rlderi

Description

@rlderi

There are many cases where it would be very useful to have the collapsibleTree expanded to a particular node by default, rather than either completely collapsed or completely expanded. For an example implementation, the expandTo column below would tell the map to render with the path from root to Ida expanded, and the rest of the map collapsed.

org <- data.frame(
  Manager = c(
    NA, "Ana", "Ana", "Bill", "Bill", "Bill", "Claudette", "Claudette", "Danny",
    "Fred", "Fred", "Grace", "Larry", "Larry", "Nicholas", "Nicholas"
  ),
  Employee = c(
    "Ana", "Bill", "Larry", "Claudette", "Danny", "Erika", "Fred", "Grace",
    "Henri", "Ida", "Joaquin", "Kate", "Mindy", "Nicholas", "Odette", "Peter"
  ),
  Title = c(
    "President", "VP Operations", "VP Finance", "Director", "Director", "Scientist",
    "Manager", "Manager", "Jr Scientist", "Operator", "Operator", "Associate",
     "Analyst", "Director", "Accountant", "Accountant"
  ),
  expandTo = c(rep(FALSE, 9), TRUE, rep(FALSE, 6))
)

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