move hideTreeRoot to tree picker interface

This commit is contained in:
Mads Rasmussen
2024-05-06 09:17:20 +02:00
parent e93fe6f019
commit 2a7e4d9f7c
2 changed files with 1 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
export interface UmbPickerModalData<ItemType> {
multiple?: boolean;
hideTreeRoot?: boolean; // TODO: this should be moved to a tree picker modal data interface
filter?: (item: ItemType) => boolean;
pickableFilter?: (item: ItemType) => boolean;
}

View File

@@ -15,6 +15,7 @@ export interface UmbTreePickerModalData<
TreeItemType,
PathPatternParamsType extends UmbPathPatternParamsType = UmbPathPatternParamsType,
> extends UmbPickerModalData<TreeItemType> {
hideTreeRoot?: boolean;
treeAlias?: string;
// Consider if it makes sense to move this into the UmbPickerModalData interface, but for now this is a TreePicker feature. [NL]
createAction?: UmbTreePickerModalCreateActionData<PathPatternParamsType>;