spfx-40-fantastics icon indicating copy to clipboard operation
spfx-40-fantastics copied to clipboard

Retrieving Data from a list

Open AmrHamam opened this issue 6 years ago • 1 comments

Hi, I was searching for something like this spfx webparts collection since long, and it is a really good work. Appreciated. But I have one idea, what if you make all of your web parts have the option to retrieve its data (items) from a list, so in the webpart settings i will choose the site collection, then i will choose which list in that site, and then I will choose which columns in that list to be mapped with specified columns in the webpart. also adding filtering by specified column and item limit will be awesome. are you going to make something like this soon?

THank you

AmrHamam avatar Aug 13 '17 10:08 AmrHamam

Hi @AmrHamam,

It depends of web parts. Some web parts (as Pictures library based web parts) use already a request to a document library to find items. Other web parts (as "Menu" web parts) get items from data contains in the web part. You can rewrite some web parts to have another behavior.

For example, a web part based on a library query: https://github.com/OlivierCC/spfx-40-fantastics/tree/master/src/webparts/gridGallery

Regards,

Olivier

OlivierCC avatar Aug 13 '17 21:08 OlivierCC