tachybase_todo/docs/zh-CN/welcome/release/tree-collection.md

633 B

Tree collection

Collection options

{
  name: 'categories',
  tree: 'adjacency-list',
  fields: [
    {
      type: 'belongsTo',
      name: 'parent',
      treeParent: true,
    },
    {
      type: 'hasMany',
      name: 'children',
      treeChildren: true,
    },
  ],
}

UI

Create tree collection

Default fields

Table block

Add child

Expend/Collapse