Contents tagged with SharePoint

  • Connected SharePoint Framework (SPFx) Webparts Part 2

    The Other Webpart and the Communication Between the TwoSo far, we have created a dropdown component that can be used as a child to some other component that can pass in a reference to a method the child can call on selection to perform whatever task for which the parent is being built, and put it all into a component. To arrive at our destination of having that webpart communicate the selected GitHub Id to another webpart that will display the repos for that Id, we only have to build out that other webpart, then add the communication into both of them.The Repos Lister WebpartTo get started, from the tsx component generated when creating the project, I renamed the IGitReposProps to … more

  • Connected SharePoint Framework (SPFx) Webparts Part 1

    One of the key use cases for traditional SharePoint webparts is to have a webpart that allows users to enter some sort of input, causing another webpart to respond in some way. Out of the box SPFx webparts do not allow for this, however there are ways to achieve connected SharePoint Framework (SPFx) webparts. The absolute basics for just the communication piece of this puzzle are included in a reference webpart project on the team’s GitHub site here. There are in fact two samples that use events to communicate between webparts, the react-events-aggregator and the react-rxjs-event-emitter, the main difference being that the former uses out of the box tools to accomplish the event publication … more