Ga naar hoofdinhoud

CnFolderTree

Recursive presentational folder tree. Renders a (possibly nested) list of { id, name, icon?, count?, children? } folders and emits select with a folder id when one is clicked. Purely presentational — data loading and CRUD live in CnFolderSidebar.

<CnFolderTree :folders="tree" :selected-id="active" @select="onSelect" />

Props​

PropTypeDefaultDescription
foldersArray[]Folders at this level; each may carry a children array.
selectedIdString | NumbernullThe currently selected folder id.

OpenRegister reliance​

none: this component does not touch OpenRegister, directly or through anything it imports. 0 direct references, 0 files reached through imports.

See the reliance overview for the filterable list.

Props​

NameTypeRequiredDefaultDescription
foldersunion[]Folders at this level. Each may carry a children array for nesting.
selectedIdstring&#124;numbernullThe currently selected folder id.

Events​

NamePayloadDescription
select—Emitted when a folder (at this level or a descendant) is clicked.