Skip to content

Instantly share code, notes, and snippets.

Working on it...

Vardhaman Deshpande vman

Working on it...
Block or report user

Report or block vman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Graph.Net.SDK.SPO.Thumbnail.cs
using Microsoft.Graph;
using Microsoft.Identity.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Graph.SPO.Thumbnails

View ConsumerWebPartReactComponent.tsx
import * as React from 'react';
import { IHelloWorldProps } from './IHelloWorldProps';
import { CustomOfficeUiFabricLibrary, ButtonComponent } from 'spfx-lib-ouifr';
export default class HelloWorld extends React.Component<IHelloWorldProps, {}> {
private myInstance;
View index.ts
export { CustomOfficeUiFabricLibrary } from './libraries/customOfficeUiFabric/CustomOfficeUiFabricLibrary';
export { ButtonComponent } from './libraries/customOfficeUiFabric/ButtonComponent';
View config.json
"$schema": "",
"version": "2.0",
"bundles": {
"custom-office-ui-fabric-library": {
"components": [
"entrypoint": "./lib/index.js",
"manifest": "./src/libraries/customOfficeUiFabric/CustomOfficeUiFabricLibrary.manifest.json"
View ButtonComponent.tsx
import * as React from 'react';
import { DefaultButton, Label, PrimaryButton } from 'office-ui-fabric-react';
interface IButtonComponentProps {
primaryButtonText: string;
defaultButtonText: string;
export class ButtonComponent extends React.Component<IButtonComponentProps, {}> {
public render(): JSX.Element {
vman /
Last active Apr 14, 2019
Tech Note: ServiceScope API
View ConsumerCounter.ts
const counterServiceInstance: ICounterService = this.context.serviceScope.consume(CounterService.serviceKey);
const currentCounterValue : string = `Current counter value: ${counterServiceInstance.increaseAndReturnCount()}`;
this.domElement.getElementsByClassName("counterValue")[0].textContent = currentCounterValue;
View gps
gulp package-solution
You can’t perform that action at this time.