The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.
Questions tagged [spfx]
975 questions
0
votes
1 answer
How to unit test SPFx promises with chained property and methods
How can i do unit test on sample TypeSCript function below? I'm trying to incorporate unit test with SharePoint Framework using PNP/SP library and having issues with creating the unit test.
public getListItems(): Promise {
…

asepdf
- 13
- 3
0
votes
0 answers
gulp serve command not working on SPFX using react
I am getting following error while running gulp serve command.
I am working on the SPFX using react while running the project getting this error for the task.

Mr. Roshan
- 1,777
- 13
- 33
0
votes
2 answers
React with TypeScript: State Initiations in constructor
I have a Long form in TypeScript React App, Where we need to hide/show or enable/disable based on value of status.
export interface IState {
Status: string;
DisableBasicForm: boolean;
DisableFeedbackCtrl: boolean;
DisableTypeofReqCtrl:…

Durgesh
- 98
- 1
- 2
- 9
0
votes
1 answer
SPFX site (SharePoint 2016 on-premise site with react) reloading continuously. What to do?
I am trying to setup a SharePoint 2016 on-premise site with react using Yeoman generator : @microsoft/generator-sharepoint (V1.7.1).
I followed the instructions from microsoft docs only.
I had referred few other resources as well for changing…

JEEVAN GEORGE ANTONY
- 168
- 5
- 21
0
votes
1 answer
How to use the pageContext in SPFx?
I am trying to get a value from the current page by using the pageContext but I am getting either undefined or 404.
This is the situation:
In the Site pages library there are several news pages. Each news page has some tags attached to them. This…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
1 answer
can we use two SPFx extensions in one application
I am pretty new SharePoint.
I would like to know if we can use two SPFx extensions in one application. Because i want the functionality of both field customizer and application customizer.
And if yes then how can we get the details of a selected…

Keerttik Kumar
- 35
- 8
0
votes
0 answers
Using Fabric UI Dialog in React Spfx
I am using the Dialog component to show a serie of tags which the user can choose from. The web part has two views. The landing view shows all the thags and the posibility to click on them and save them. That part is working:
Ladning view
The second…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
1 answer
spfx - onpropertychange event
I have created cascading dropdown. I need to load dropdown based on parent dropdown selection. I am trying to use onpropertychange event. but I am getting error on super.onpropertychange saying {Property 'onPropertyChange' does not exist on type…

swetha s
- 33
- 1
- 1
- 9
0
votes
1 answer
How to return the response value to the caller function
I am calling a function in another class, that contains a API request. I want to return the response from the API request back to the class where i called the function from. But the Console.log writes out "Promise {pending}".
let test: Object =…

SaadRH
- 140
- 6
0
votes
1 answer
sharepoint placeholder bottom not refreshing
I've created a bottom placeholder with spfx and react and it contains a menu. when I select an option from the dropdown menu the page refresh but the bottom placeholder still showing the dropdown oppened, i like everything refreshes but not the…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
0 answers
Callout component get wrong position inside bottom placeholder
I am trying to show the react callout component inside the bottom placeholder in a modern SharePoint page but when I click the button to open the callout this shows in the top left of the screen and not right under the button.
Is there some css…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
1 answer
Is there options how to code/create workflow using SPFx?
I developing web-part client-side solution using sharepoint framework. I successfully create a lists with some columns (it's list's columns not site). But now, I need to create a workflow, so is there any options, how to coding workflows using…

Tomáš Gazsi
- 13
- 6
0
votes
1 answer
Display sharepoint list item in unorderlist list using spfx
I am trying to insert sharepoint list items in UL. right now each item is added in separate UL. please help how to iterate and add all sharepoint list item in one UL.
public componentDidMount(){
if(this.props.Dropdownprop != undefined){
…

swetha s
- 33
- 1
- 1
- 9
0
votes
1 answer
How to pass json into fabric ui dropdown component?
I am trying to use a fabric ui component in a SPFx extension.
I have already placed the Dropdown component in the extension and now i have to give it the options that the user can select.
The options are delivered as json, here is the example I am…

Americo Perez
- 95
- 1
- 4
- 17
0
votes
0 answers
Can't retrieving mails from MS Graph with SPFX Webpart: ResourceNotFound - Resource could not be discovered
I'm working on a SPFX webpart with ReactJS that does some service calls to MS Graph API REST in order to show user data: user's display name, user's mails, user's calendar events and user's Teams. However, only user info service call ("/me" in…

Mfdezvil
- 1
- 2