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
0 answers

How to refresh form data ( other inputs) after changing the drop-down value in react?

I have a form that includes few inputs and dropdown fields. I have a dropdown called 'Name'. I want to change the value of other input and dropdown fields based on the selection on 'Name' dropdown. I am using the state to change the value on…
Sandeep Arora
  • 5
  • 1
  • 1
  • 3
0
votes
1 answer

How to make a REST call to get list items from different sites using TypeScript, something like Promises?

I am trying to retrieve list items from 2 different sites and do some action only once all data are retrieved. I thought of using something like .then() and Promises. I am using SharePoint Framework, this is for Modern SharePoint extension, not a…
0
votes
2 answers

How to fix, Module has no exported member in react component?

I am creating a web part using spfx with react.js. I have created a new component and I am getting 'Module has no exported member' while importing this newly created component. How to fix this issue? import Form from…
Sandeep Arora
  • 5
  • 1
  • 1
  • 3
0
votes
1 answer

How to reduce hero banner webpart size in SharePoint online?

I tried to make SharePoint hero banner in SharePoint 365 but it takes unnecessary space and it looks really bad. So how can we reduce the SharePoint hero size?
0
votes
1 answer

SPFx uploading and adding attachment to a list

I am having some difficulty upload and attachment to a list item in sharepoint using the PNP/SP package. I dont have much experience with the input file component so I think I may be missing a step between the file upload html element and submitting…
andy moore
  • 89
  • 2
  • 11
0
votes
1 answer

Pass state to Dropdown options?

I am trying to populate the options parameter of the Dropdown component from a state but nothing shows in Dropdown because the state is empty when the Dropdown get rendered. this is how I am creating the state: export interface IListState { views:…
Americo Perez
  • 95
  • 1
  • 4
  • 17
0
votes
1 answer

Refactoring rest request in SPFx Web aprt

I have worked in a web part that fetch items from a SP list and then filter or groups these results. For each filter action I send a new request to SP with Rest and I am using the rest code to get back the filtered items and show them in the web…
Americo Perez
  • 95
  • 1
  • 4
  • 17
0
votes
1 answer

How to edit properties of webpart on an App page

Since SPFx 1.8 was release there is new type of pages - App pages. There is no edit mode on these pages. How i can change webpart properties without switching page into article and back?
Sergey Aslanov
  • 663
  • 1
  • 7
  • 13
0
votes
1 answer

SPFx how to identify type of list's view?

I am working in a code that fetch the custom views created in a list. The code looks like this: public async getView(): Promise { let viewsList: IViews[] = []; const itemsViews = await sp.web.lists.getByTitle("Avtal…
Americo Perez
  • 95
  • 1
  • 4
  • 17
0
votes
1 answer

How to display the custom command sets just inside a specific document set in sharepoint modern UI?

I have made some custom command sets that are being displayed in the command bar. I want those commands to be displayed only inside a document set and not anywhere else. I did follow the official microsoft for building the command…
0
votes
1 answer

addEventListener to SPFx Webpart showing SharePoint List Data

I'm trying to add a click eventlistener on each item from a SharePoint list in an SPFx webpart using React The webpart html generated looks like below:

Active People

0
votes
1 answer

How can I update the underlying data value of checkbox on click

I am using Office Fabric React in an spfx web part and within a MarqueeSelection /DetailsList in each row have a checkbox to represent a boolean value, On click the default callback function writes out to log whether the isChecked value is…
0
votes
1 answer

SPLoaderError.loadComponentError: Failed to load component

Developed a SharePoint app in SPFX Framework, when I compile it with gulp build it compiles fine, however when I do gulp serve and I add the app to the workbench and get this following error: [SPLoaderError.loadComponentError]:***Failed to load…
0
votes
1 answer

Using SPFx solutions styling in the SharePoint App

For those of you using SharePoint Framework solutions, how are you handling and approaching the different user experiences of the SharePoint App vs the mobile browser? Particularly for custom navigation elements in application customizers /…
0
votes
3 answers

Learning SCSS from old CSS code - how to rewrite this?

I'm a beginner using SCSS and I'm not sure how to rewrite my old CSS into something new using SCSS for a TypeScript project, right now I picked a few examples below to ask this question, if somebody could show the right way, I guess I can figure the…
Mr. Dr. Sushi
  • 469
  • 8
  • 22