Oh-image-card F7 method photoBrowser.open

Hi

I would open the photobrowser (oh-image-card) from an item.
Can I reach the F7 methode photoBrowser.open(index) from OH(4) ?
Or must I use F7-card ?

Regards Hajo

User level OH does not have access to the F7 methods.

You may be able to use the new UI item feature, but I’m not sure it quite fits your use case. This has been added very recently so I don’t think it’s even documented yet, but you can see the basic info in the PR here:

This is only works on interfaces where you have configured the UI listening item (as it should be), and it won’t open a photobrowser directly, but you could have it open a widget in a popup that uses the oh-image-card to show you a specific image.