Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonathan L Folland 35 posts 197 karma points
    6 days ago
    Jonathan L Folland
    0

    Media Folder Picker from Entity Action

    From an Entity Action, I am trying to popup a media picker modal to allow the user to select a media folder. I am able to get the popup to work, but not able to filter the items to just media folders or allow the user to select a media folder. Is there some other way to do this; for example a different modal tool from UMBMEDIAPICKER_MODAL?

    const modal = this.modalManagerContext?.open(this._host, UMB_MEDIA_PICKER_MODAL, {
        data: { multiple: false, filter: (item: any) => {
            console.log({"pickableFilterItem":item});
            return item?.mediaType?.icon == "icon-folder"; },
    
        },
        value: { selection: [] },
    });
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies