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 answers only not deleted user 59151

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

0 votes

Tutorial 5 Step 5 loading error: unable to load web part script resources

If this is the hosted version of the workbench, make sure you are allowing mixed mode requests (http requests from an https page) Also - why is it looking for node-mudules ? It should be node_module …
PatMill_MSFT's user avatar
  • 2,466
5 votes
Accepted

SPFx: breaking out of the ClientSideWebPart CanvasZone

It's a bad idea to break outside of this.DomElement. There is really no guarantee that the markup on the page will a) remain consistent over time or b) remain consistent across page types. We're wor …
PatMill_MSFT's user avatar
  • 2,466
2 votes
Accepted

How can I 'bundle' a json file into a SharePoint Framework webpart?

So maybe I'm not quite reading the question correctly, but here is all I did. Put a sample.json file in the src/webpart directory Put var sample:any = require('sample'); In my code, and that popu …
PatMill_MSFT's user avatar
  • 2,466
7 votes
Accepted

SPFx: loading jQuery (and other libraries)

I'll add one more thing here. The plan in the near future is to standardize the most common libraries and host a single version on the Microsoft Cdn, and then recognize that a developer is including " …
PatMill_MSFT's user avatar
  • 2,466
5 votes
Accepted

Creating a custom Property Pane Field

I've updated the documentation (https://github.com/SharePoint/sp-dev-docs/wiki/Integrating-Property-Pane) so that it now works. For now, it's the responsibility of the developer to know what properti …
PatMill_MSFT's user avatar
  • 2,466
3 votes
Accepted

SPFx: Can we safely use eval or is it evil in SPFX?

I.believe you can use it. As you mention its generally not a good practice, but you can use it. I don't believe we use it in any of our code. Are you encountering any issue?
PatMill_MSFT's user avatar
  • 2,466
3 votes
Accepted

SPFx: How to test for the 3 SharePoint flavors: Classic, New Experience and SPFx

Well, for the new webparts, you can look at the context.Environment variable.
PatMill_MSFT's user avatar
  • 2,466
1 vote
Accepted

Loading external library fails "If loading a global module configure the global name via..."

The error states that it is looking for winston off of the Microsoft hosted akamai servers (https://spoppe-a.akamaihd.net/files/winston), which is probably not where it is. What does your external re …
PatMill_MSFT's user avatar
  • 2,466
4 votes
Accepted

The value for "webpart context configureStart" must not be undefined

So apparently we messed up in the shift away from @microsoft/sp-client-preview towards @microsoft/sp-webpart-base . While we fix up documentation, samples, yeoman, etc. please follow the instruction …
PatMill_MSFT's user avatar
  • 2,466
1 vote

SharePoint Framework and workbench.aspx

you are correct - the instructions aren't clear (and in fact are overly complicated). Go to the page (https://github.com/SharePoint/sp-dev-docs/blob/master/workbench.aspx) and click on the "raw" butt …
PatMill_MSFT's user avatar
  • 2,466
1 vote
Accepted

SPFx webpart onPropertyChanged didn't fire after control's content was changed

Two things. upgrade to drop 6 (https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-Drop-6) method signature has changed to "onPropertyPaneFieldChanged(...)" with the same parameters and ret …
PatMill_MSFT's user avatar
  • 2,466
0 votes

SPFx web part page context does not update when linking between pages

this is a known issue that is being worked on. In the meantime, there should be a REST API that you can call - https://tenant/sites/site/web/_api/ComponentContextInfo/?List=%7Bputyour-page-list-guid- …
PatMill_MSFT's user avatar
  • 2,466
2 votes
Accepted

SharePoint Framework documentation propertyPaneConfiguration

Your code should be protected get propertyPaneSettings(): IPropertyPaneSettings Looks like the documentation is incorrect. I'll log a bug to fix it.
PatMill_MSFT's user avatar
  • 2,466
0 votes

Is it possible to have table control in PropertyPane of Client Side Webpart with new SharePo...

Yes - you can create your own control. Check out this page here - https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/build-custom-property-pane-controls There have been changes, so the d …
PatMill_MSFT's user avatar
  • 2,466
1 vote
Accepted

Is it possible to have "Cancel" button with "Apply" button for Non reactive Property Pane in...

so you have done the right thing, and while there is no cancel button, the X in the top corner of the property pane will do the same thing. We went through a few designs, and people found the cancel …
PatMill_MSFT's user avatar
  • 2,466

15 30 50 per page