Questions tagged [spfx]

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.

975 questions
2
votes
0 answers

Jest moduleNameMapper to change the module everywhere

When I try to map a module for unit testing with jest to a local file, it says module not found. For example, package.json: "moduleNameMapper": { "something": "/mockModulesJest/jest/ExtensionStringsModule.js" }, Somemodule.ts: import *…
Abhishek Raj
  • 115
  • 1
  • 1
  • 7
2
votes
2 answers

Devextreme as external library for sharepoint framework

I am using a very large library in my spfx solution and I would like to not only share it among webparts within this app but share it across any other webparts that might be using this library. What I know I know that you can include external…
Rudy Garcia
  • 522
  • 1
  • 6
  • 19
2
votes
1 answer

How to access Excel Data stored in Sharepoint Online Document Library using Excel Rest API in a Sharepoint Framework (SPFx) app?

I have a Sharepoint Framework project (SPFx) using knockoutJS, in which the app will try to read a data from an Excel file stored in a sharepoint Document Library in a Sharepoint Online Site, using Excel Rest API. I came across several…
Rommel Sudan
  • 41
  • 1
  • 2
  • 6
2
votes
2 answers

Get selectedKey from dropdown office fabric ui

I created two react classes. One of this - child class name - ChildView, bind data into dropdown office fabric component and I use on ParentView class ChildView, code: export class ChildView extends React.Component
user1143009
  • 31
  • 1
  • 4
2
votes
1 answer

Office Fabric UI - onClick IconButton does not working when I Package-Solution

I have the following table: Rows are drawn in a dynamic way and also the buttons to delete each row.
Capa
  • 105
  • 2
  • 6
2
votes
1 answer

Variables in SPFx projects?

I'm working on a web part using SPFx with React framework, the presentation layer in on a file called Refiner.tsx, while on the other hand I have my logic on a another file called RefinerWebPart.ts. How do I get a "global" (for the lack of better…
Mr. Dr. Sushi
  • 469
  • 8
  • 22
1
vote
0 answers

It is possible to add webpart dynamically in sharepoint site page using rest api?

I googled many more sites, but I am not found the solution for that issue.so how can I able to do that. give me the solution for "How to ad webpart dynamically in sharepoint site pages using rest api" in react js. Thank you In advance.
1
vote
1 answer

How do you do create a service file for a Functional Component React app (SPFx)

I'm trying to figure out the best way to do services in a React SPFx application. For those not familiar, SPFx is for SharePoint. Its just a react app with typescript wrapped inside a SharePoint webpart. I'm still new to react and every example I…
1
vote
1 answer

Loading Fluentui 9.19.1 React components' style on Microsoft SharePoint WebPart

I'm currently developing a Microsoft WebPart. I'm using "yo @microsoft/sharepoint" to generate the project with React framework and I'd like to use the new "@fluentui/react-components" to design the WebPart. But, when I deploy the application, the…
1
vote
0 answers

Gulp serve SPrintFImpl(const char *): Assertion `(p[1]) == ('%')' failed error

I've been working on an SPFx project on my macbook for a while and its been fine. I have recently got a new macbook and have been trying to get my solution running on my new one. I cloned it from my ADO repository and I have everything installed…
rv97
  • 11
  • 1
1
vote
0 answers

How to build SPFX Web Part with Angular CLI Elements

When using gulp serve - Getting errors like You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. I am trying to…
1
vote
1 answer

PnPjs: Filtering SharePoint document library by file name results in errors

I am working on a new web part to display a list of files in a SharePoint document library called Medicine files. I want users to be able to filter the files based on different columns, including file names. I am using PnPjs to search for files by…
1
vote
0 answers

Why does my page scrolls every time I'm typing inside an input in SPFx?

I'm working on an SPFx React functional component. I have created a component that contains many accordions Each accordion contains one textbox. Every time I'm typing anything inside an input the page scrolls to the top. Please refer to the below…
1
vote
1 answer

What is the difference between Sharepoint Add-ins Legacy and Sharepoint Framework?

I am currently trying to learn how to build apps to add into SharePoint to extend its functionality and after a lot of confusion and reading all about SharePoint Add-ins I was met with this on the GitHub page: SharePoint add-in model is considered…
user21318185
1
vote
1 answer

Enable the "Make "New Folder" command available?" option with Sharepoint using @pnp/sp

I need to create folder under Site Pages library under SharePoint Online site. I have tried to create the folder programmatically using @pnp/sp library. But it thrown me Access Denied error. New Folder option is missing while click on New. Please…