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
0
votes
1 answer

ReactDom.Render() in SharePoint Framework App

For our current project, we need to be able to create a PDF file out of the
s. When I look at the code for most of them, they are rending from ReactDom.Render() instead of the render class: An example is from React-pdf: import React from…
Holden1515
  • 659
  • 2
  • 7
  • 20
0
votes
1 answer

Cannot Get More Than Basic User Info with Microsoft Graph API

Having followed the instructions at https://learn.microsoft.com/en-us/sharepoint/dev/spfx/use-aad-tutorial#DeploymentAndPermissionsGrant, my SharePoint web part experiences an error when I try to retrieve anything more than the basic fields. For…
user1477388
  • 20,790
  • 32
  • 144
  • 264
0
votes
1 answer

Why I am not able to authenticate with Microsoft Graph Explorer through Sharepoint Custom Web Part only in Edge Browser

I have deployed a custom web part on sharepoint online, in which I am authenticate with Microsoft Graph Explorer. It is authenticated through Sharepoint Custom Web Part successfully in Chrome, IE and Firefox but not authenticated in Edge. In Edge…
0
votes
1 answer

SPFx: How to populate the dropdown with list names

I am trying to create a dropdown in the property panel of a webpart with SPFx and I found this tutorial: Use cascading dropdowns in web part properties The problem with the sample is that is is using static data and I would like to know how to fetch…
Americo Perez
  • 95
  • 1
  • 4
  • 17
0
votes
1 answer

How to render a link to the newform.aspx in SPFx

I have created a webpart that render the content of a list using the DetailList component. Now I want to create a link to the NewForm.aspx so when a user click on it get sended to the new item form. The link needs to be dynamic. The webpart can be…
Americo Perez
  • 95
  • 1
  • 4
  • 17
0
votes
1 answer

SPFX with Angular - Not able to use service in component ts file

I have created a project using SharePoint SPFX framework and added necessary packages required for Angular (6.0 or 7.0) typescript. It seems Angular is working in my spfx webpart but when I am trying to create a service using Angular, I am not able…
BD's
  • 33
  • 6
0
votes
1 answer

Customizing a modern page using SpFx

I want to transform a classic site into a modern experience and I have the following customization, done on a classic list form. The page contains two Webparts: XsltListViewWebPart to display the list of items ContentEditorWebPart to fetch some…
bentalay
  • 21
  • 3
0
votes
0 answers

How to integrate bootstrap in the client side web part using spfx angular?

I'm new to development and also to Spfx. I'm making use of pnp- spfx generator to create client side web part using Angular. I need to use bootstrap for styling the controls. Bootstrap is working fine with Angular elements(ng serve) but not…
0
votes
1 answer

Reusable react component to dynamically binding data to multiple dropdowns from multiple lists

I am using spfx with react framework/pnp-js.t In a form I have total 8 dropdowns.I want to render data to these fields from 8 different sharepoint lists through one function only. I tried implementing this thing for one drodown say 'City'. But stuck…
K Kritis
  • 1
  • 4
0
votes
1 answer

How to get a foreground colour on a pivot object

I have a row of pivot buttons which I use for my spfx form in a web part. I need to be able to give a grey background when users hover over the control. so at the moment my control looks like this : So the blue bar changes on select but I want a…
Jason_Hough
  • 392
  • 5
  • 31
0
votes
1 answer

Deploying SPFX extension to multiple sitecollection

I have deployed SPFX extension package to app catalog. we need to deploy this app to multiple sitecollection. I tried powershell which is not working can anyone please help out . $credentials = Get-Credential Connect-PnPOnline "URl of the site"…
swetha s
  • 33
  • 1
  • 1
  • 9
0
votes
2 answers

Reactjs- Unable to access class variable inside function in tsx

I am unable to access class variable inside a function, following is my code: export class MyClass extends React.Component<{}, {}>{ public myArray: string[]; //I want to access this variable constructor() { this.state = { name: "" } } …
nbi
  • 1,276
  • 4
  • 16
  • 26
0
votes
1 answer

Angular 5 with multiple modules and Sharepoint SPFX

I'm using Angular 5 to run an application inside an SPFX solution but my application does not trigger some basic angular events like onInit or even the @Input set are not working. The only module and components that are working properly are the…
clepere
  • 34
  • 4
0
votes
2 answers

How to update value in input and drop-down after re-rendering the component with updated value?

I have a form in which I have a few textboxes and dropdowns. I am re-rendering this form component on change of dropdown value with new values. It is re-rendering fine with update values but I am not able to change the values manually from textboxes…
Sandeep Arora
  • 5
  • 1
  • 1
  • 3
0
votes
1 answer

How to re-render child component in react spfx?

I have a child component which consists of a form with input tags. I am rendering this component in the parent. I want to re-render the child component with new values while changing the drop-down value. export interface INewFormProperties…
Sandeep Arora
  • 5
  • 1
  • 1
  • 3