suneditor icon indicating copy to clipboard operation
suneditor copied to clipboard

Idea: add search form to imageGallery

Open TutanRamon opened this issue 3 years ago • 2 comments

I love how the imageGallery works out of the box. Most developer who will use it, will certainly create an json api for the call to retrieve the images. I would be great if we can add an option like 'imageGallerySearchUrl'. When set, a search bar needs to be shown in the gallery.

So, I now have imageGalleryUrl: "/admin/media/list/latest",

New attribute: imageGallerySearchUrl: 'admin/media/list/search?term='

My frontend js skills are not good enough to make a PR myself. Thanks in advance.

TutanRamon avatar Mar 30 '21 12:03 TutanRamon

@TutanRamon Good Idea. I'll add this feature at the v3.0.0

JiHong88 avatar Mar 31 '21 08:03 JiHong88

This feature would be amazing!

Or even a pagination option on the end of a scroll.

For example, I'm using Unsplash as my image gallery, and when the user scrolls to the bottom of the gallery, it would be awesome to load more images! 😁

Whatever you do, this is an awesome project and has saved me so much headache.

Cheers.

ifielder avatar May 14 '22 23:05 ifielder