Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 20540

General technical questions about the SharePoint Framework client-side development model.

0 votes

Redirect to another component in spfx webpart recatjs class component

I will highly recommend using react-router-dom. Below is a sample code from here. import React from 'react' import ReactDOM from 'react-dom' import './index.css' import { Route, Link, BrowserRouter a …
Naveen's user avatar
  • 1,912
1 vote
1 answer
3k views

Show loading indicator for any ajax operation via SP PnP JS

We are developing a SPFx webpart and are using SP Pnp JS to fetch and update list items. …
Naveen's user avatar
  • 1,912
0 votes
0 answers
1k views

Making a div full screen in SPFx webpart deployed in SharePoint Online

But when I deploy my SPFx webpart and add it to page, the CSS does not work as it works in workbench.aspx. The div ends up occupying a very small section. … What is the best way to make a div full screen in SPFx webpart? …
Naveen's user avatar
  • 1,912
3 votes
1 answer
9k views

Unable to load `/temp/manifests.js` on https

On my SharePoint 2016 on-premise development site workbench, to load my SPFx webpart in the config\server.json I have set the "https": false. …
Naveen's user avatar
  • 1,912
11 votes
Accepted

Unable to load `/temp/manifests.js` on https

Finally figured out what was the problem. Before doing gulp serve run the command set NODE_NO_HTTP2=1. This will allow the manifestes.js file to be served over https. Before opening the SharePoint O …
Naveen's user avatar
  • 1,912
1 vote
1 answer
923 views

Add column names dynamically to `select` method in SP PnP JS

In the select method of SP PnP JS how can I add column names dynamically? For e.g. can the below code sp.web.lists.getByTitle("My List").items.select("Col1", "Col2"); be written something like thi …
Naveen's user avatar
  • 1,912
3 votes
1 answer
1k views

Creating component in SPFx webpart from command line

Is there any way to generate component in React from command line (similar to Angular's ng generate)?
Naveen's user avatar
  • 1,912
0 votes
2 answers
6k views

Getting Minified React error #31 when trying to view SPFx webpart in Internet Explorer 11

We have SPFx webpart on version 1.8.2 using React version 16.7.0. When we test the webpart on Google Chrome it works perfectly fine. … As per the fix suggested here I fixed this by enforcing a load order in my webpack bundle: babel-polyfill react react-dom But where I mention this order in my SPFx webpart project? …
Naveen's user avatar
  • 1,912
2 votes
2 answers
6k views

Get current theme colors for SharePoint Online site in SPFx webpart

In my SPFx webpart I want to be able to get the current theme color (primary, secondary and tertiary) in TypeScript code. Below are the approaches I tried. … button { /* ... */ background-color: "[theme: themePrimary, default: #0078d7]"; border-color: "[theme: themePrimary, default: #0078d7]"; /* ... */ } How can I get current site theme color in SPFx
Naveen's user avatar
  • 1,912