pickable filter

This commit is contained in:
Lone Iversen
2023-12-13 13:47:36 +01:00
parent 42c4e54595
commit 09d9af8270
3 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,6 @@ export class UmbTreeElement extends UmbLitElement {
return this.#treeContext.filter;
}
set filter(newVal) {
console.log(typeof newVal);
this.#treeContext.filter = newVal;
}

View File

@@ -115,7 +115,7 @@ export class UmbDocumentTypeInputElement extends FormControlMixin(UmbLitElement)
if (this.elementTypesOnly) {
this.#pickerContext.openPicker({
hideTreeRoot: true,
filter: (x) => x.isElement!,
pickableFilter: (x) => x.isElement!,
});
} else {
this.#pickerContext.openPicker({ hideTreeRoot: true });

View File

@@ -60,6 +60,7 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement
<div slot="editor">
<!-- TODO: maybe we want to somehow display the hierarchy, but not necessary in the same way as old backoffice? -->
<umb-document-type-input
element-types-only
.selectedIds=${this._allowedContentTypeIDs ?? []}
@change="${(e: CustomEvent) => {
const sortedContentTypesList = (e.target as UmbDocumentTypeInputElement).selectedIds.map(