New answers tagged

1

Please check the below steps for adding multiple language in SPFX webparts: Within "loc" folder you will see a file named "mystrings.d.ts". At first add property here like below: declare interface ITestWebPartStrings { WebpartTitle: string; } There is a file for english language named "en-us.js". If you want to add another language you have to create ...


0

If you want to localize your SharePoint Framework web-part to use it for different languages then you can create multiple javascript files for each languages which will have definitions for properties of your web-part. Follow below official documentation by Microsoft for the same: Localize SharePoint Framework client-side web parts.


0

Thanks Aris for your sharing, I have the same issue a few months ago, I put the window.location.href just in the render function, it won't redirect and finnally, I also change the isDomainIsolated to false and it solve the issue.


0

Finally, it works, I changed from true to false: on config/package-solution.json -> "isDomainIsolated": false.


0

If your redirection URL is not dynamic then you can create a button like below: <button type="button" onclick="parent.location='<redirection url>'">Click Here</button> Or <button type="button" onclick="location.href='<redirection url>';">Click Here</button> You can find more answer in below link: How to create an HTML ...


Top 50 recent answers are included