OlivierCC / spfx-40-fantastics

This package is a sample kit of Client Side Web Parts built on the SharePoint Framework SPFx. You can find here different kind of high visual web parts as carousel, images galleries, animations, map, editors, etc.
MIT License
408 stars 279 forks source link

Retrieving Data from a list #38

Open AmrHamam opened 6 years ago

AmrHamam commented 6 years ago

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

OlivierCC commented 6 years ago

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