The PnP PeoplePicker reusable control is one of the amazing reusable controls available from the open-source @pnp/spfx-controls-react project. You can easily include it in your SharePoint Framework projects. Unfortunately, and at the moment, there is a bug that prevents you from completely disabling the control.
Continue reading “PnP PeoplePicker reusable control disabled”SPS Barcelona – Resources from my session
Had an amazing time at SharePoint Saturday Barcelona (SPS Barcelona) last weekend! The event was very well organized and full of really nice sessions to attend. Really hope that everyone who attended had a great time.
You can find the slides from my presentation below.
Continue reading “SPS Barcelona – Resources from my session”PnP TaxonomyPicker reusable control as a required field
The PnP TaxonomyPicker reusable control doesn’t have a property to let you mark the input control as a required field on a form, but fortunately, this can be easily addressed.
If you have used the PnP TaxonomyPicker reusable control before, you may have noticed that it doesn’t have a property to make it required, nor does it have a property that lets you add a custom CSS class to it. The problem is that your other required input controls on the form will have a ‘*’ after the label, but not the TaxonomyPicker controls.
But there is a very simple way to solve this because the control also has a Label control, so we can mimic the styles from other Office UI Fabric input controls.
Continue reading “PnP TaxonomyPicker reusable control as a required field”SharePoint Framework with Visio JavaScript APIs
I’ve recently worked on a client project where I used the Visio JavaScript APIs in a custom SharePoint web part. The web part was used to embed Visio files on a SharePoint page, and access custom properties from the file. The property values are then used to generate a custom and dynamic user interface.
Continue reading “SharePoint Framework with Visio JavaScript APIs”Target site for PropertyFieldListPicker control
The latest release of PnP Reusable property pane controls (1.8.0) adds an additional property (webAbsoluteUrl) to the PropertyFieldListPicker control. It allows a target site to be specified for loading the lists.
Continue reading “Target site for PropertyFieldListPicker control”My session at SharePoint Saturday Madrid
Last Saturday I had the pleasure to speak at SharePoint Saturday Madrid. You can find here all the materials used for the presentation: the presentation slides and the video recording. On the slides, you can find links to the relevant resources and also a link to my GitHub repository that contains a working version of the demo, and also a guide in case you want to recreate the demo yourself.
Continue reading “My session at SharePoint Saturday Madrid”PnP reusable controls, property pane controls, and PnPJS library
If you are a SharePoint developer creating SPFx solutions, you must have heard about the PnP reusable controls and PnPJS library. They help you accelerate the development of custom solutions by providing tools that help you overcome common problems/requirements.
Continue reading “PnP reusable controls, property pane controls, and PnPJS library”SharePoint Framework – new project checklist
Starting a new project generally requires some initial setup before you can jump into code. SharePoint Framework (SPFx) is no exception.
Unfortunately, we often forget to configure something that then needs to be added during the development phase, which may introduce some issues. I hope you find this article helpful the next time you create a new project.
Continue reading “SharePoint Framework – new project checklist”TSLint errors on VS Code using SPFx default rules
I like to use the TSLint extension on Visual Studio Code to immediately flag errors. This is very useful as you can see them before you save and wait for a build task to flag them. What I don’t like, is that the TSLint config file (tslint.config) is generated inside the config folder by the SPFx Yeoman generator.
Continue reading “TSLint errors on VS Code using SPFx default rules”