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
1
vote
1 answer

Combining multiple Promise results into an array

I am trying to send multiple strings to be processed by a function. The function executes a promise on each string that needs to be evaluated. Once all the promise responses are returned, I need to send that back as a multidimensional array, so…
Will73
  • 55
  • 7
1
vote
0 answers

Breakpoints not hit when debugging SPFx Field Customizer in VSCode

When debugging a SPFX Field Customizer Solution using VS Code, I cannot get the breakpoints to hit in the IDE. If I open the dev tools in the browser, I am able to put in breakpoints in the code and get them to hit, but not in the VSCode IDE. In…
1
vote
0 answers

SPFx resolving dependency issues

While following this training unit by Microsoft Exercise - Use the SPFx PnP reusable property pane controls I encounter errors, any advice on how to resolve these issues? Environment Info Platform: Windows nodeJS v16.18.1 npm 8.19.2 gulp CLI…
B-and-P
  • 1,693
  • 10
  • 26
1
vote
0 answers

How to bind data based on web part added in section?

I have created a SharePoint Framework web part. I have dynamically bound boxes under that web part. I have added that web part to SharePoint modern page one-third right section. Below is the screenshot of the page section layout. I need to bind…
1
vote
0 answers

How to publish SharePoint Framework application to the Marketplace?

I have created SharePoint Framework application. I need to publish that application to the SharePoint Marketplace. I have refereed below link for the same, https://learn.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-checklist Can…
1
vote
1 answer

Changing existing Excel spreadsheet in React

Can you recommend some tool or library that I can incorporate into my React / SPFX project what would be capable of doing some modifications to one of the sheet in existing multi-sheet Excel file? The spreadsheet itself is quite complex, many…
1
vote
1 answer

How to get the publishing state of a given page?

Currently I'm trying to get some information of the publishing state of a given page. Maybe anybody has an idea for this issue. Thanks in advance To get information about the page I use pnpjs to retrieve the pages list item as follows: const…
ThomasP
  • 35
  • 4
1
vote
1 answer

How to get user department, phoneNumber with PeoplePicker

I am working in SPO (SPFX react js application) and successfully PeoplePicker work, but I am wondering how to get to console.log department and phoneNumber (already can get loginName, id, displayName) MobilePhone in console is undefined. I don't…
jck4real
  • 33
  • 7
1
vote
1 answer

How To Customize Dropdown Items to use Theme Color in SPFx WebPart

I want to give my dropdown items to use the text themeColor. How can I achieve this? Below is my code: const dropdownStyles: Partial = { dropdown: { width: "50%" }, dropdownItem: { backgroundColor:"$themePrimary", …
1
vote
0 answers

Remove Toolbar and Footer from @mui/x-data-grid while export pdf

I have created data grid using @mui/x-data-grid. Below is my code snippet,
1
vote
0 answers

SPFx React Application Crash/Freezes Browser while Add on SharePoint Page

I have created a web part using SPFx React. Below is my package "@material-ui/core": "^4.12.4", "@material-ui/icons": "^4.11.3", "@microsoft/sp-core-library": "1.14.0", "@microsoft/sp-lodash-subset": "1.14.0", …
1
vote
0 answers

How to add SPFx webpart to page in SharePoint online sub-sites?

I have created the SPFx web part for custom development in SharePoint online modern site. I have created multiple subsites under one site collection. I need to add the SPFx web part to all sub-sites. I have tried to save a template of one site but…
1
vote
1 answer

Should we use Fabric or Fluent in SPFx Development

I'm a SharePoint developer and our team is just getting into SPFx Development. We're using Node version 14.15.0 and react version 16.13.1. We are also going to need controls and we're interested in either Fabric or Fluent, but uncertain of which one…
Bill
  • 21
  • 1
1
vote
0 answers

How to integrate react font awesome icon picker in PropertyFieldCollectionData control in SPFx?

I have created SharePoint Framework web part in SharePoint online. I have integrated PropertyFieldCollectionData in that web part. Below is the link for the…
1
vote
0 answers

SPFx - Application Customizer for SharePoint Online Deployment results into DOM Exception Error

DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. I am facing one issue after deploying the SPFx solution which is used to display a custom header as an…
Syed Babar
  • 11
  • 3