Hello, I am in the process of upgrading my custom property editors so they can function in 14.
I have an editor, where you select a media folder in config, and then display the images in that folder in the editor UI.
So far I've managed to set up the config correctly, and I'm able to select the image folder when setting up the data type.
But I'm kind of stuck when it comes to getting the images from the media library, I don't know how to get the child items from the media folder.
Does anyone have any useful hints?
So far I have the following:
public set config(config: UmbPropertyEditorConfigCollection) {
const folder = config.getValueByAlias("imagefolder") as Array<UmbMediaPickerPropertyValue>;
const mediaKey = folder?.[0].mediaKey;
this.#itemRepository.requestItems([mediaKey]).then(({ data }) => {
this._imageFolder = data?.[0];
});
}