Questions tagged [spfx]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
13 views

import interface in mystrings.d.ts

I want to add multiple languages to my spfx web part. Now I want to import some interfaces to my mystrings.d.ts declaration file. But when I do that it breaks the definition and I get a lot of errors ...
0
votes
1answer
40 views

Image Carousel SPFx webpart with video as a source

I want to bind a video in carousel with source which is a hyperlink in the carousel. I am able to bind images but not able to bind video as a source. How do I load videos with images? <div style={...
0
votes
0answers
3 views

Import locale key from component

i have a few components where i export a string as identifier for each component. At the root of my webpart "webpartname.tsx" i dynamicly load different components and there i reuse the exportet ...
0
votes
0answers
19 views

How to implement an idea board management tool in SharePoint Online? [on hold]

Can you please guide me on implementing idea board tool for my organization using SharePoint Online? I think I can use community site template, PnP,MS Flow, Power Apps and SPFx. But I would prefer ...
0
votes
1answer
13 views

SPHttpClient undefined error: Using React JS to add item in SharePoint list

I'm trying to add an item in SharePoint Online list using SPFx solution where I'm using React JS to perform the action. Below is the copied code, when debugging it says that: "VM242:1 Uncaught ...
0
votes
2answers
23 views

Powerapps or spfx to built forms in SharePoint online?

I need to create a few forms on SharePoint online, but first I would like to know which one to use PowerApps or SPFx? Can I use workflow on powerapps or spfx? Edit: the complexity of the form is ...
0
votes
1answer
27 views

Auto play false Image Carousel SPFX webpart

I have created image carousel SPFx web-part which is set as auto-play equal to true and on click of image there is modal pop up, its working fine. But when I click on image my modal pop up open but ...
0
votes
0answers
20 views

Issues Or tasks that cant be done using React framework in spfx [closed]

I wanted to know what are specific functional/technical tasks that cannot be completed using React in spfx
0
votes
1answer
19 views

cdnBasePath Modern Webpart - Private Office 365 CDN

How should the the cndBasePath be in the write-manifest.json file if I want to use Private Office 365 CDN? { "cdnBasePath": "mytenant.sharepoint.com/sites/CDN/cdnlibrary/" //"cdnBasePath": "<!-...
0
votes
1answer
12 views

Modern SharePoint client side webpart code repo

I am wondering, if the OOB SharePoint Client Side webparts are open source or not? Let me give you a background, why I came to this point. I created a MS Flow manually triggered, added Column ...
0
votes
1answer
38 views

How to retrieve Image column from SharePoint list using React js SPFx

I am trying below TypeScript to retrieve the Image column using SPFx .Unfortunately image is not rendering on page. Please help me on this.
1
vote
1answer
25 views

Options to deploy SPFx webpart - SharePoint Online

What are all the options to deploy SPFx webparts to a SharePoint Online environment? Is it always necessary to have the .sppkg uploaded to the SharePoint App Catalog? What is the recommended ...
0
votes
3answers
36 views

Sharepoint Online No JS Framework, how can redirect to one modern page to another?

I am using: window.location.replace('https://site.sharepoint.com/sites/ExternalSharing') Also I tried using href. The problem is that when I clicked on the button for redirection the new page is ...
3
votes
1answer
28 views

Sharepoint Item rest query How to get the multiline column value which has append text property set true

I have a multiline column named as "Notes" in a list. This column has the "append text" property set to true. So when I retrieve the item I am getting this column null value. Please help me query this....
1
vote
1answer
31 views

Query site collection property bag in SPFx extension

I am building an SPFx Application Customizer for a Powell365 project, and trying to have it use custom properties from the current site collections's property bag. I already managed to get these ...
0
votes
1answer
28 views

Css overide for office fabri ui Pivot

How can we do padding left in office fabric UI CSS for pivot component , Want to padding of Pivot component its working on develoepr tool added screenshot for same but not able to override through css ...
0
votes
3answers
41 views

SPFX property pane changing on page refresh

I have added few controls to property pane, I have few labels which get updated on button click as shown in below image But once the page is refreshed, the label values are lost as I am using an ...
0
votes
2answers
17 views

How can I use Yarn to download Sharepoint Framework (SPFx) dependencies, for offline use on a VM which is not connected to the internet?

I am starting to read and learn about SharePoint Framework (SPFx). My development environment is a VM on a machine that does not have access to the internet. How would I go collect all the ...
0
votes
1answer
22 views

Argument of type '{ description: string; siteurl: string; }' is not assignable to parameter of type

For SPFx running gulp serve getting below error. For this line it was working before: public render(): void { const element: React.ReactElement<IReactGetitemsProps > = React.createElement( ...
1
vote
3answers
60 views

Using JQuery with SharePoint Framework

Reading this tread (Add jQuery in Client Web part (SPFX)) I'm going to open a new question with another problem. I am also following the accordion tutorial from Microsoft docs and trying to customize ...
0
votes
1answer
60 views

Image Carousel Spfx webpart

Hi I am working on SPFx image carousel web-part using react responsive carousel. I want that if user click on image on carousel it will show detail description of image in modal dialog on same page: ...
0
votes
0answers
14 views

SPFx Command Set on a subset of document libraries

I am working on a scenario where I have multiple document libraries and I would like to enable a Command Set button for custom approval only on a subset of those libraries, so effectively have 2 types ...
2
votes
1answer
30 views

How to Get Site-users and Site-groups in SPFx using PnP-JS?

How to get the site users and site groups in SPFx using PnP JS? Thanks in advance.
0
votes
0answers
24 views

CSS classes added in project.module.scss not showingUp in my .tsx file in SPFx Project

Currently I started working on React SPFx webparts and wanted to add some new CSS. I added some styling to classes in Project.Module.scss. But Now when I am adding this class names in render() method ...
0
votes
1answer
25 views

SharePoint Online Mega Menu

How can I create a Mega Menu using term-sets in SharePoint online? Any help would be appreciated. Thanks in advance.
1
vote
2answers
37 views

Home page get blank when spfx webpart added

I have one custom SPFx webpart which fetches the event from calendar. the webpart is working fine but when I place the webpart on home page communication site. the home page shows blank. If i add the ...
0
votes
1answer
35 views

How re-render react when toggle properties change

I'm using spfx and react, i have toggle on WebPart properties, and i want to re redner when toggle was change in the .Ts page not in Tsx, i have no idea how to do this, there is no SetState on .ts. I ...
0
votes
1answer
26 views

Not able to get the Category from calendar event

I am using a SPFx react web-part to get the events from calendar. I am expanding the calendar events however could not able to get the Category column. Here is the code I am using: public ...
0
votes
2answers
35 views

SPFX webpart “Deploying a domain isolated package on a site collection app catalog is not supported.”

Getting an error like on SPFX webpart "Deploying a domain isolated package on a site collection app catalog is not supported."
0
votes
0answers
31 views

Get ProductId of installed app

I'm trying to automate the installation of sharepoint add-ins. I have added an spfx add to the tenant add-in catalog and then used pnp:s AppManager to install it to a site. I gave it the product id as ...
0
votes
1answer
40 views

SPFX - Client side solutions cannot be used in this location

I am facing below issue while adding SPFx package file in App Catalog: Client side solutions cannot be used in this location. Update: I am adding package file in "Apps for Testing" library. "Apps ...
0
votes
2answers
61 views

How to find out is a current user in a group [duplicate]

I need to find out whether a user is in a group. If he is, then I could show or hide properties. I have the below code, can this be used or adapted to find out whether a user is in a 'manager group'? ...
0
votes
0answers
18 views

Show or don't show a properties

I need to someone pass users for spfx webpart to show or not show a properties. Nativly we can do it by passing or not pass context web in getPropertyPaneConfiguration(). But the webpart will be on ...
0
votes
0answers
10 views

How to pass permisions by Microsoft Graph - spfx

I need to find out if a user is a member of a SP group. And pass or not pass a properties from webpart. How could I achieve that?
0
votes
1answer
54 views

SPFx React REST API 403 error

I have created SPFx webpart with React. I am calling REST API to get documents from document library and it's work perfectly in workbench but in SharePoint page i am getting error 403 - Forbidden ...
0
votes
0answers
16 views

How to save permanently web-part to a Site template

Some of my web-part should be always Visible on the sites. Could You please tell me how to prepare site template to have some web-parts visible on the site. How to prepare a site which after load ...
0
votes
1answer
25 views

What version of Node.js can I use if I'm stuck on SPFx v.1.1.0 (SP 2016)?

I'm stuck on SharePoint 2016 for the time being, and I know that means I'm stuck using SPFx v.1.1.0. However, I'm not sure what that means in terms of what version of Node.js to use. I have some ...
0
votes
1answer
21 views

Change tenant logo on a specific site collection (O365_MainLink_TenantLogo)

I know that changing top nav suite is bad practise, but I got a client that want to make a generic domain from a site collection (B2B)-> change tenant logo. I don't know any solution to change the ...
0
votes
0answers
32 views

SPFx: Unwanted border on click of Document Card in React JS

I am creating SPFx webpart using React JS. On click in document card component I am getting unwanted border. I tried removing it but not working. I have applied border-radius on document card style, ...
1
vote
1answer
20 views

Is there something like “View Customizer” in SPFx?

There is Tiles example on Github. But this is JSON Column Formatting. Is there a way to have more control above View rendering from SPFx web-part? I know field customizers can change behavior for ...
1
vote
1answer
34 views

How to install List view command set extension in a site collection after deploying it to app catalog using CSOM?

I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites. I tried adding it as a custom action but ...
0
votes
1answer
58 views

Document card hover colour change

Hi I have used office fabric ui document card i want to change colour on hover of document card , const cardStyles: IDocumentCardStyles = { root: [ ...
0
votes
0answers
19 views

How to implement rights to SPFx webpart to manage only properties?

I have got a web part with properties. I need a sample of how to add a functionality to web part which gives aa rights to manage properties for one SharePoint group. Users from this SharePoint group ...
0
votes
1answer
26 views

SPFx how to save some propeties to sharepoint list

I have got a SharePoint webpart written in SPFx. I need a sample how to save some properties to SharePoint list. Could You help me please ?
0
votes
1answer
60 views

spfx webpart react rest api

I am using REST API in my SPFx web-part and passing parameter in REST API but its not working as expected , there is some mistake in writing REST API within `` as parameter is not working: export ...
0
votes
2answers
40 views

response.json return problem - undefinied

I have got problem with response . json() return problem. I have got two methods one is Mocking List, and another is by JSON. Mock method works superb. but return from response.json() returned me ...
0
votes
1answer
103 views

Invalid Command for o365 spo login CLI

I am setting Azure DevOps pipleline for my SharePoint framework project and followed below steps, https://social.technet.microsoft.com/wiki/contents/articles/52777.sharepoint-framework-how-to-...
0
votes
1answer
20 views

409 conflict error when deleting multiple attachments using PnP js or REST

I am trying to delete multiple attachments from list item as below private _deleteOneByOneAttachment(ln: string, id: any, file: any):Promise<any>{ let item = sp.web.lists.getByTitle(ln)....
0
votes
1answer
20 views

SPFx, should I have two Dev environments for SharePoint on-prem 2019 and SharePoint Online?

As I understand SharePoint 2019 on-prem supports older version of SPFx and dependencies. So I need to hold two dev environments if I want to make webparts/extensions for both on-prem and online ...
1
vote
2answers
89 views

Get\Set multiple list data form SP On-Premises site to SP online site Using SPFx webpart

I have one SharePoint On-Premises site which is accessible outside of my server. I already have few lists & libraries created on that site which I am using. I have one Office 365 SharePoint ...