diff --git a/packages/primevue/src/tree/Tree.d.ts b/packages/primevue/src/tree/Tree.d.ts index 47cc5b0b2..b70440af7 100755 --- a/packages/primevue/src/tree/Tree.d.ts +++ b/packages/primevue/src/tree/Tree.d.ts @@ -461,6 +461,42 @@ export interface TreeSlots { */ partialChecked: boolean; }): VNode[]; + /** + * Custom header + * @param {Object} scope - header slot's params. + */ + header(scope: { + /** + * Current value + */ + value: TreeNode[]; + /** + * Current expanded key + */ + expandedKeys: TreeExpandedKeys; + /** + * Current selected keys + */ + selectionKeys: TreeSelectionKeys; + }): VNode[]; + /** + * Custom footer + * @param {Object} scope - footer slot's params. + */ + footer(scope: { + /** + * Current value + */ + value: TreeNode[]; + /** + * Current expanded key + */ + expandedKeys: TreeExpandedKeys; + /** + * Current selected keys + */ + selectionKeys: TreeSelectionKeys; + }): VNode[]; /** * Optional slots. * @todo diff --git a/packages/primevue/src/tree/Tree.vue b/packages/primevue/src/tree/Tree.vue index a71e46d64..5d85437d5 100755 --- a/packages/primevue/src/tree/Tree.vue +++ b/packages/primevue/src/tree/Tree.vue @@ -18,6 +18,7 @@
+ +