CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

[Feature] MudGallery - Support for Single Image as ImageSource

Open Tony-1992 opened this issue 2 years ago • 4 comments
trafficstars

Hi, I couldn't find any previous issues for this request.

Current Behavior

MudGallery accepts a list of strings as the source images (ImageSource), allowing users to display multiple images in the gallery. However, there is no support for directly providing a single string as the ImageSource.

Desired Behavior

It would be beneficial to add a version of MudGallery that accepts a single string as the ImageSource, in addition to the existing capability to accept a list of strings. This will make it more convenient for users to display a single image in a gallery without the need to wrap it in a list.

Use Case

The use case for this feature is to simplify the usage of MudGallery when users only want to display a single image in the gallery. This will enhance the component's flexibility and user-friendliness.

Tony-1992 avatar Nov 02 '23 12:11 Tony-1992

Hmm, so whats the difference between one-value gallery and MudImage?

mckaragoz avatar Nov 15 '23 16:11 mckaragoz

Sorry for the delay!

For me in particular, I wanted to retain the overlay, backdrop effects, Toolbox content ect... that the MudGallery provides but MudImage does not.

Tony-1992 avatar Nov 26 '23 16:11 Tony-1992

Understand, but isn't it very easy to set only one image for value?

mckaragoz avatar Nov 26 '23 20:11 mckaragoz