-
Creating a user scoped property for SPFx webparts
Custom webpart properties provide a great way to support configurable values for SPFx webparts. The properties which we configure using the default property pane of an SPFx webpart can be changed when one edits the page and these property values are then for all users. The traditional webparts which were...
-
Showing the correct DateTime value from UTC value in an SPFx webpart
When we fetch the values of any DateTime fields within a SharePoint list or library, the values are returned in UTC format, as they are stored in UTC format internally. When this values is shown with a SharePoint view or any default page, the UTC format is then converted to...
-
Getting the URL of SharePoint Pages and Documents using PnPjs in SPFx webparts
While developing some SPFx webparts or extensions, we might need to find the full URLs of the SharePoint items we read. For example, if we are developing a custom Image Gallery, the SPFx webpart should read all the items from a Image library and also need the full URLs of...
-
Querying a list from another site using PnPjs in SPFx webparts
While most of the SPFx webparts or extensions interact with the current site for querying a list or creating list items etc., there could be scenarios where a custom SPFx webpart or an application customizer might have to query a list from another site collection or a sub web of...