We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d83e1 commit 3c3d56fCopy full SHA for 3c3d56f
src/packages/documents/documents/modals/schedule-modal/document-schedule-modal.element.ts
@@ -41,6 +41,15 @@ export class UmbDocumentScheduleModalElement extends UmbModalBaseElement<
41
this.#selectionManager.setMultiple(true);
42
this.#selectionManager.setSelectable(true);
43
44
+ const pickableFilter = this.data?.pickableFilter;
45
+
46
+ if (pickableFilter) {
47
+ this.#selectionManager.setFilter((unique) => {
48
+ const option = this.data?.options.find((o) => o.unique === unique);
49
+ return option ? pickableFilter(option) : true;
50
+ });
51
+ }
52
53
// Only display variants that are relevant to pick from, i.e. variants that are draft or published with pending changes:
54
this._options =
55
this.data?.options.filter(
0 commit comments