API reference¶
Tree¶
Tree is the preferred alias for SpadayTree. Tag: <spaday-tree>.
Prop |
Type |
Description |
|---|---|---|
|
|
Complete flat list of file paths. |
|
|
Paths selected in the current model. |
|
|
Current search query. |
|
list of mapping |
Pierre-compatible path and status entries. |
- class spaday_trees.SpadayTree(*children: Component | dict | str, key: str | None = None, paths: Any = None, selected_paths: Any = None, search: str | None = None, git_status: Any = None, **props: Any)[source]¶
Bases:
ComponentPierre Trees file tree with serializable paths, selection, search, and Git status.
Events¶
Event |
Detail |
|---|---|
|
|
|
|
Programmatic selection and search assignments do not emit matching events. Programmatic selection expands ancestor directories and scrolls the first selected path into view.
Path replacement preserves expanded directories that exist in both path sets. Assigning an unchanged path list does not rebuild the Pierre model.
package¶
spaday_trees.package is named trees. It serves the self-contained Pierre wrapper bundle from
/components/trees/cdn/index.js when selected by serve(). Its components collection contains
SpadayTree; catalog returns the wrapper’s property, event, and slot schema.