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?
Asked
Active
Viewed 213 times
1 Answers
0
You could probably use the Set-PnPWebPartProperty
powershell command.
(https://github.com/SharePoint/PnP-PowerShell/blob/master/Commands/WebParts/SetWebPartProperty.cs)
Or, you could - like you said - change it to Article and back, and only publish your changes after modifying the properties. This way visitors will never see the "article page" version

Nsevens
- 2,588
- 1
- 17
- 34
-
Thanks for answer, but I'm looking for something I can do right from webpart code without switching page type – Sergey Aslanov Apr 14 '19 at 18:08
-
@SergeyAslanov you can use the PnPJS library to manipulate the page and webpart properties. https://github.com/SharePoint/PnP-JS-Core/wiki/Working-With:-Client-side-Pages – Nsevens Apr 15 '19 at 07:29