Search Results
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 |
Technical questions about building and using web parts based on the SharePoint Framework client-side development model.
3
votes
Accepted
jquery not loaded with SPF
The problem is caused by the protocolless jQuery URL (//code.jquery.com/jquery-1.12.3.js). If you change it to https:// your web part will work as expected.
1
vote
Sharepoint Framework (Drop 6): How to load external css in a WebPart
Also, change ModuleLoader to SPModuleLoader. It seems like the class has been renamed in drop 6.
1
vote
Multi language support for Client Side webpart with New SharePoint Development Framework
When starting the workbench by default it uses the en-US locale. To override this you can run:
$ gulp serve --locale=de-de
which will cause the workbench to use the de-DE locale instead.
Another …
2
votes
SPFX - SP.UI.Notifications.addNotifcation not available?
The SP.UI namespace correspond to the classic SharePoint UI and, as far as I know, doesn't have an equivalent in modern sites. While you could theoretically load all scripts, required to use this name …
0
votes
Trying to Deploy the React Multi-page Sample
The sample itself is pretty old and has just recently been updated to GA, unfortunately without updating the setup steps. Originally, when the sample was published, there was no hosted workbench, so y …
2
votes
Accepted
SPFx Unable to use 'fs' module
The fs module is a part of Node.js and is not available inside web parts. You could use it in custom Gulp tasks but not inside web parts. On runtime web parts run in web browser and not on top of the …
1
vote
React Patterns for displaying SharePoint Lists in a single page
I'd suggest that you look at the components listed at https://dev.office.com/fabric#/components and read the best practices section of each component to see what it is and isn't meant for. Components …
3
votes
Referencing custom JavaScript files in SharePoint framework
You can reference the .js file using require('file.js'). Keep in mind that its contents will be wrapped in a function so you won't be able to just call variables in functions defined in that file.
I' …
1
vote
SPFX OnChange Event
Every time you change a property in the web part property pane, SharePoint Framework calls the web part render method, where you can choose to update the view and repaint the web part. If you want, yo …
9
votes
Accepted
workbench page shows "This site can’t provide a secure connection" on creating SPFx Webpart
Are you using Node.js v8 by any chance? If so, there is a known issue with the http/2 experimental feature. You can disable it by setting the NODE_NO_HTTP2=1 environment variable. More information abo …
1
vote
Displaying package version number (n.n.n.n) in the body of a web part
Unfortunately not. This version number is only meant for use inside the package. Each component (web part, extension) has its own version number which is independent of the package version number, whi …
1
vote
Accepted
Hide SharePoint sppkg from site contents
Unfortunately, you can’t do that. There is no supported way of hiding apps installed in a site from the site contents view.
3
votes
How can I implement Angular 2 routing in an SPFX webpart
I would be careful about implementing Angular routes in Web Parts (no matter if it's Angular 1 or 2). Imagine that you would have multiple Web Parts on the page each with each own set of routes persis …
6
votes
Accepted
SharePoint Framework – Loading Font Awesome CSS from CDN
The easiest way to load CSS from CDN is using the ModuleLoader class.
First you import ModuleLoader in your code:
import ModuleLoader from '@microsoft/sp-module-loader';
Then, in the web part's co …
3
votes
SPX and Typescript - how to add references to SP.JS?
There is a specific guidance article describing how to use SharePoint JSOM with SharePoint Framework client-side web parts available at https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/c …