Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Configuration

Chad Ramos edited this page Jul 17, 2017 · 6 revisions

Pioneer Tree can be configured by passing a configuration object to the pioneer-tree component.

{
  "childPropertyName" : "path.to.child", 
  "sortPropertyName" : "sort",
  "collapseAllOnLoad" : true
}

childPropertyName

Tell Pioneer Tree where to find a child collection.

For example...

[
  {
    "path": {
      "to": {
        "child": [
        ]
      }
    }
  }
]

... equates to a value of "path.to.child".

Default

children

sortPropertyName

If you are tracking a sort index in your base objects, Pioneer Tree will update it accordingly.

Default

sort

collapseAllOnLoad

Set to true if you want to collapse all nodes on component load.

Default

false

Clone this wiki locally