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

SPFx with REACT.js - Render table with variable number of TD

I am currently working on refactoring my existing javascript into a SharePoint Framework solution with REACT. I got most parts working but I am stumped on the Render function to return html contents for a table with a variable number of columns. …
Charlie C
  • 21
  • 5
0
votes
2 answers

React Fabric TextField becomes read only after adding value property

I have been trying to figure out how to handle value changes in React Fabric TextFields. The problem is every time I set the value property, the component becomes read only. If is use the defaultValue property, everything works fine, apart from the…
lukas
  • 574
  • 1
  • 4
  • 19
0
votes
1 answer

Sync Workday and SharePoint Calendar

I am wondering if there is a way to sync workday calendars with SharePoint calendars. Is there a way to sync the two calendars? like is there an API available for a workday that I can utilize to extract the calendar data such as employee leaves and…
Page F.P.T
  • 653
  • 4
  • 11
  • 24
0
votes
0 answers

Previous values are not preserving in ReactJS when I add new row

I am working SPFx with React framework. I am also utilizing MS Fabric Textbox controls. I have created an interface as below export interface ICurrentState { expenseRows:any } I am initializing this interface in constructor. public…
Mihir
  • 8,696
  • 18
  • 56
  • 87
0
votes
1 answer

error TS2339: Property 'items' does not exist on type 'Readonly<{}>'. usnig react in SPX

I'm working on a SPFX issue using react and I keep getting error :- Error - typescript - src\webparts\reactReadWebpart\components\ReactReadWebpart.tsx(101,25): error TS2339: Property 'items' does not exist on type 'Readonly<{}>'. See below…
naijacoder
  • 464
  • 5
  • 14
  • 31
0
votes
2 answers

Adding base64 encoded icons to a SPFx ListView CommandSet Extension

I'm trying to add an icon to the ListView CommandSet Extension I created using Waldek's tutorial Configure extension icon. The issue I have is: Getting a gulp warning *appears to be a relative web URL. This means that when the is rendered, this URL…
0
votes
2 answers

Node Modules are not visible in my Git project in VSTS

I am new to VSTS. I have created a new SPFx webpart in sharepoint and it depends on Node Modules. I have tried to commit my changes to a project in VSTS. However, I do not see files node modules when I clone it on a different computer and so I am…
Sudhakar
  • 136
  • 7
0
votes
1 answer

Disappearing Background Image Style Attribute With Certain URLs

I'm not certain if this is specific to React or the build chain inside SPFx, but I'm having issues setting a background image on a div dynamically. I receive the URL from an API call to SharePoint and use the below code to generate a simple site…
0
votes
0 answers

SharePoint Framework: Client Webpart throwing error when testing through workbench

I am following below path to deploy: npm install -g yo gulp npm install -g @microsoft/generator-sharepoint yo @microsoft/sharepoint gulp trust-dev-cert gulp serve After gulp serve command I'm getting this error: This page can't be displayed Please…
Lkalpana
  • 1
  • 2
0
votes
1 answer

Microsoft Graph API - Search content over a sharepoint site

We are creating a Sharepoint webpart that enable searching a Sharepoint site contents using Microsoft Graph Api. I am able to get the Lists and subsites using graph Api, but not sure how to search any content at site level. Looking for any pointers…
monika pathak
  • 91
  • 1
  • 4
0
votes
2 answers

gulp serve command open a browser with error: "This site can’t provide a secure connection localhost sent an invalid response"

I can't able to check out the SharePoint Frameworks Web Part in my browser as it says "This site can’t provide a secure connection localhost sent an invalid response" ERR_SSL_PROTOCOL_ERROR. I have tried every possible solution for this while…
0
votes
1 answer

SPFx on Terminal Server

I have been setting up a terminal server, for development for our team. However i am having a hard time making the SPFx envoriment (Gulp / Yeoman) work. I would love to install Yeoman and Gulp so it just works for everyone, however it beeing…
MazZ
  • 55
  • 8
0
votes
1 answer

jQuery is not loading as module even if i define in externals section of config.json

I am have installed jQuery using NPM. Now I am adding this into my externals section as: "externals": { "jQuery": { "path": "/node_modules/jquery/dist/jquery.min.js", "globalName": "jQuery1" } } Now I have installed unitegallery…
Mihir
  • 8,696
  • 18
  • 56
  • 87
0
votes
1 answer

How to import js file as module in typescript

I am working with SPFx framework in SharePoint, which will have typescript files. I am using SPServices.js and app.js (custom js file) in my application. In config.json file I am using like below: "externals": { "jQuery":{ …
Mihir
  • 8,696
  • 18
  • 56
  • 87
0
votes
1 answer

Sharepoint SPFX - external javascript loading issue

I have followed the quick start and made a working hello world webpart. I want to include the twitter widget, so I have followed the guide on adding external JavaScript, this is linked from git hub I add the following to my config.json "externals":…
Steve Drake
  • 1,968
  • 2
  • 19
  • 41