New answers tagged

0

Declare a props of SPHttpClient type in your Webpart's Props.ts file as below : import { SPHttpClient } from "@microsoft/sp-http"; export interface WebpartProps { spHttpClient: SPHttpClient; } Go to your Webpart's .ts file : import { SPHttpClient, SPHttpClientConfiguration, SPHttpClientResponse, ODataVersion, ISPHttpClientConfiguration } from '@...


1

I would suggest to use a state variable to set the value of autoPlay for your carousel. Assuming, you have a property with isAutoPlay: boolean in your state: You can set the autoPlay to true on web-part initialization as: this.setState({ isAutoPlay: true }); In your onClick function, set this property to false like: this.setState({ isAutoPlay: false }); ...


0

I resolve the problem using Microsoft Graph. I have a backend created on C# .Net Core, just I needed to create an application on Microsoft Azure Portal, linked to MS Graph API, adding permissons and generate a Secret ID to link the app with the BackEnd. Sounds easy, but it's required also integrate the Microsoft Fundation to authenticate the users and allow ...


0

Sample demo(many test secenarios, ignore others which you don't need): import * as React from 'react'; import styles from './ReactSpFx.module.scss'; import { IReactSpFxProps } from './IReactSpFxProps'; import { escape } from '@microsoft/sp-lodash-subset'; import { SPHttpClient, SPHttpClientResponse} from '@microsoft/sp-http'; import Slider from "react-...


1

You can wrap the Pivot component inside a div element and add your custom style to it like: <div className={styles.pivotWrapper}> <Pivot linkFormat={PivotLinkFormat.tabs} linkSize={PivotLinkSize.large} > <PivotItem headerText="Current" itemIcon="Recent"> <Label></Label> </PivotItem> <...


Top 50 recent answers are included