Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spfx-webparts]

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

5
votes
0answers
169 views

New Communication site Template supports Multilingual Content

we have a requirement to use new Communication Site template and build a web site, but it should be multilingual. Since new Communication site look and feel and responsiveness suit to my client ...
5
votes
0answers
176 views

Office ui fabric react not working with SharePoint hosted app!

I have created SharePoint hosted app using VS2015, and in that i have used Office ui fabric react components. I have installed it and other packages of React and React-dom using npm, App is ...
4
votes
0answers
265 views

Print Files through SPFx/JS?

I would like to build a button which would send a batch of files to the printer when clicked (It can prompt the user. Doesn't need to go to the printer without approval). The files would exist in a ...
4
votes
0answers
48 views

Is it possible to include fields in a sharepoint list directly from elements.xml file?

I am trying to provision a SharePoint 2013 tasks list from a spfx app using the feature framework. I am able to create an out of the box tasks list with the following list definition in my elements....
3
votes
0answers
291 views

SharePoint Framework error : Resource “jquery” not found in loader configuration of manifest for component

I know that this question has already been there, but am raising it because after trying all blogs issue did not get resolved. Am trying to load non-AMD module having dependency on AMD module. Since ...
3
votes
0answers
262 views

SPFx Custom Property Pane

I had created a SPFx web part. The web part contains a Property Pane Custom Field, which returns a string. Now, when I hit apply button on property pane, my custom property gets the data and render it ...
3
votes
0answers
71 views

SPFx WebPart and Variations - App is not working

I have developed a SharePoint SPFx App that is using a CDN hosted in SP for the resources. Everything is working fine on normal websites and sites but not on variation sites. So I can install the ...
3
votes
0answers
572 views

SPFx Custom Property Pane save property save

When building a SharePoint Framework web part - How to Save Custom Property Pane value? I have created a multiselect field for Property Pane, but not able to retain the values when refresh the page. ...
2
votes
0answers
23 views

Error in seting up spfx 1.7 with angular 7

Hi I am setting up a SPFX 1.7 project with Angular 7 using the sample which is done with previous version. https://www.youtube.com/watch?v=_OgEqWtouuU https://winsmarts.com/use-spfx-with-angular-cli-...
2
votes
0answers
24 views

SPFX WebPart: Getting HTTPS certificate ERROR in IE11

Getting HTTPS certificate error in IE11, webpart is working fine in chrome, firefox, and Edge but NOT in IE11. The webpart is just displaying some simple list data in dropdown component, and nothing ...
2
votes
0answers
35 views

MS Graph API - Problems on SPO Mobile-App

The Background: I am developing Sharepoint Online Webparts on-demand. Sometimes the functionality of these Webparts include the use of Microsoft's "Graph-API" to access Data regarding Office 365 ...
2
votes
0answers
23 views

Update a library field when uploading a file using javascript

I am using a spfx webpart to upload a file and modified a column value associated tothat file. The code below works and stop working without any reason and i can modify only the title field with it. I ...
2
votes
0answers
76 views

Office-UI-Fabric Pivot with React Router? Possible or not?

I face real challenge (at least for me) so I decide to ask for some help here. I'm building SPFx app where I'm using Pivot from UI-Fabric and I would like the current user to be able to navigate back ...
2
votes
0answers
281 views

Sharepoint Framework Dialog, Modal and Panel not working

I have created a web part in react js which contains a Microsoft office UI fabric control "Modal" and it pop outs on a button click. This feature works fine on my local workbench but whenever I ...
2
votes
0answers
81 views

Dynamic update Icon in SPFX client Web Part

I am using office ui frabric details list to display documents on spfx client web part from here. Now, I want to implement check-in/check-out icons to be displayed on spfx client web part dynamically ...
2
votes
0answers
65 views

TypeScript and SharePoint Framework question - although works but does it represent correct design?

Thanks for reading my question. I am just beginning to learn TypeScript and from my understanding so far I have created the follow code to retrieve list items from a list. The code works but I am not ...
2
votes
0answers
185 views

Webpart built using latest spfx version not working on the classic site

I have built an angular 1.x webpart application using the spfx 1.4 version. The webpart works in the modern sites pages but is not working on the classic site pages and I am getting the following ...
2
votes
0answers
59 views

Is it possible to create a SharePoint hosted list by SPFx?

I need to create a list inside the app which I can remove it when I delete the app from the site.
2
votes
0answers
170 views

Issue with next metadata missing on Rest API Call

I have a Pages Library which has a Managed Metadata Column called Category. I am using REST API to query this list. I need to get the top 13 items and implement "Next" paging. When I am accessing ...
2
votes
0answers
83 views

include feature.xml in spfx webpart

The DOcs at https://dev.office.com/sharepoint/docs/spfx/web-parts/basics/notes-on-solution-packaging say that I can include a feature.xml with my spfx webpart to have sharepoint resources provisioned ...
1
vote
0answers
27 views

SPFX Webpart with Dropdown don't work on Classic pages

I currently have a spfx web-part which contains a dropdown, when I add it to a classic page and try to use the dropdown when the SharePoint ribbon displays the Format Text tab, the dropdown keeps ...
1
vote
0answers
54 views

Adding sections and web parts to the modern pages is not working

@pnp/sp version is 1.2.3/1.2.7 SharePoint version is SPO (online) I am loading the site in the Web object and adding the client side page using the web object. Once the page got created I am adding ...
1
vote
0answers
39 views

Spfx web part to show task list on modern sharepoint UI

I am looking to leverage team sites for one of my projects. Since modern UI only supports custom lists in web part view, I am looking for some help on how Spfx can be used to show task list web part ...
1
vote
0answers
50 views

SPFx Custon Property Pane not opening

I have created one custom SPFx webpart in which I have placed one link (My Links). By clicking on that link, I am getting links from SharePoint list. When user clicks on the link, it opens Property ...
1
vote
0answers
49 views

SharePoint Modern Filter option for list view webpart

I have some lists and libraries in SharePoint Online and all are already converted in modern experience (new experience). I want to add these as list view web part in SharePoint Modern page and ...
1
vote
0answers
26 views

SPFX and React : Component not rendering correctly because of findDOMNode returns null

I am a new React learner, and I may have a situation with render() and findDOMNode. What I have and what is the wrong behavior : I'm quite new to React so, I may have done lots of mistakes there. I ...
1
vote
0answers
36 views

Create list view webpart using office UI fabrics in SPFX

I want to implement same list view webpart as given in this Office fabric component example article. They have provided code for the same but I don't know how to implement this code. I have created ...
1
vote
0answers
24 views

SPFX Angular Element with UI-Router not displaying data

Iam testing Angular Element with SharePoint Framework (SPFX) Webpart, as Andrew Conell has described in his Blog Every thing is working as asspected, i have added UI-Router in webpart just for ...
1
vote
0answers
94 views

SPFx web part is not loading in IE 11

I have a SPFx web part with Knockout framework. Its developed for SharePoint on premises (V1.1.0). Deployed all the Assets in the SharePoint library. Application is working fine in Chrome. But in IE, ...
1
vote
0answers
37 views

How to remove list from site when spfx web part removed?

Modern SPFx web part creates a new list 'abc' using code when it is added to site contents. Now I want to remove list 'abc' automatically when web part is removed from site contents(using code not ...
1
vote
0answers
91 views

DetailsList component row rendering issue

There is a DetailsList component inside spfx webpart, which loads all the documents/files using PnP. There is a office-ui-fabric-react check out button outside DetailsList component. When I select ...
1
vote
0answers
28 views

Hide/Remove Item Content Type from a SP List in SPFx

I am using SPFx webpart on SP2016 and able to create a list with custom content type,below is code sample. But I am not able to get any end point to remove default Item content Type. I want my custom ...
1
vote
0answers
13 views

MSGrapClient request credentials on purpose

Is there a special way to ask a user for credentials when my app is initializing. For example, the app consists of several stages and at the 3-rd stage a user send ms graph request and if he's not ...
1
vote
0answers
88 views

How to use jquery.slimscroll in spfx

I want to use slimscroll for a couple of SPFX webparts but having trouble to get things going. I used: npm i jquery-slimscroll npm i @types/jquery.slimscroll next to a couple of other modules (...
1
vote
0answers
559 views

Using SP-PNP-JS to get data from custom content type fields with React

I'm currently making News Listing Web Part, where News are made as custom content type. I managed to get the basic fields like id, title, but others are really bothering me. The API fetches all the ...
1
vote
0answers
235 views

Cannot add multiple items in list where using pnp batching

I use "sp-pnp-js": "^3.0.4" Where i trying to create batch for - add multiple items into a list for SharePoint On-Premise . This is my code: let list = pnp.sp.web.lists.getByTitle("MyWayBills"); let ...
1
vote
0answers
468 views

Sharepoint React Framework , office ui fabric css not getting applied on components

This is the current version of office ui fabric referened in my package : I am using sharepoint react framework and have used List component : Code Link : https://github.com/OfficeDev/office-ui-...
1
vote
0answers
202 views

How to get values in textbox in webaprt in spfx

I want to display my values of sharepoint list not in a table but in respective textboxes in my web part. How can we do this in spfx(on-prem)?
1
vote
0answers
176 views

Valid App Package columb show No for a new uploaded App (On Premesis SharePoint)

Hello I am new to SharePoint, I have developed a hello world WebPart for my on premises SharePoint as shown in the SPF tutorials available on Youtube similarly I followed the tutorial for uploading a ...
1
vote
0answers
112 views

Separate file for html in SPFX

I am new to SPFX ad I am trying to create a separate file for my html code which I have done by doing this.domElement.innerHTML = require("./Index.html"); But I am not able to get the design that ...
1
vote
0answers
149 views

upgrading from microsoft sharepoint yeoman 1.3.4 to 1.4.0 cause code to stop working

I have tried to upgrade a SPFx project from Yeoman 1.3.4 to 1.4.0 as a result of this React is upgraded from version 14 to version 15.6. As a result my code has gone from working to not working :- ...
1
vote
0answers
190 views

SPFx section layouts

Currently I have an issue building an SPFx solution where I'd like to create a two-column proportional section that is full-width in a modern page. With the tools currently available to me, all I can ...
1
vote
0answers
144 views

SharePoint Online: Recommended site type for page layouts

We need page layout-like functionality in SharePoint Online and the current state of modern pages doesn't allow for the customization we need. Some columns and rows is fine, but we need fine-grained ...
1
vote
0answers
199 views

_spBodyOnLoadFunctionNames and Modern Pages

Question In developing SharePoint Framework web parts, is there any way to wait for a Modern page to load before running a piece of code? On classic pages and in the days of Script Editor Web parts ...
1
vote
0answers
67 views

SP16 - After install webpart missing under development folder

When i install SPFx webpart in my on-prem server. In Developer site i want to add this webpart in page. Folder Under development is missing.
1
vote
0answers
518 views

How to use Office UI Fabric Callout in SPFx WebParts?

I try to use a good pattern to use the Callout, for instance when hovering over a Persona element. Currently I do the following: _clientPersonaElement is a reference to the Element the Callout uses ...
1
vote
0answers
46 views

How to display read-only information on a webpart? ReadOnly TextField or Label?

I wonder if the Office-UI Fabric Label should only be used to label a field, like a TextField. Should read-only data be displayed in TextField with contentEditable={ false } and readOnly={ true }? ...
1
vote
0answers
319 views

Using Office UI Fabric React with SharePoint hosted app

I have created SharePoint hosted app using VS2015, and in that, i have used Office UI fabric react components. I have installed it and other packages of React and React-dom using npm, App is ...
1
vote
0answers
259 views

Create Custom Content Type in SPFx

I have crated an SPFx app for assets provisioning using this link: https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/provision-sp-assets-from-package i have created a list, a content ...
1
vote
0answers
195 views

“Module exports cannot be changed externally” on SP classic page

Created webpart and verified that it works fine on local workbench. Added webpart to SharePoint and it worked fine until suddenly one day it broke. [SPWebPartErrorCode.ScriptLoadError]: Unable to ...