📗
Everyday Cheat Sheets
  • README
  • Build
    • Architecture
      • API Management
        • Kong
      • Authentication
        • Keycloak
        • Okta
      • Cloud Native
      • Design Patterns
      • Design Principles
      • IaC
      • IoT
      • Message Broker
      • Methods
      • Networking
      • Payment
        • Stripe
      • Testing
    • Code lifecycle (ALM)
      • Automation Pipelines
        • Argo CD
        • CircleCI
        • Flux
        • Keptn
        • Travis
      • Azure DevOps
        • Azure Pipelines
      • Chef
      • GitHub
        • GitHub Actions
      • Nexus
      • Promyze
      • RunDeck
      • SaltStack
      • Sonar
      • Tuleap
    • Containers & Cloud Native
      • Argo Workflows
      • Containerization
        • Docker
          • Docker CLI
        • containerd
        • cri-o
      • CNAB
      • Dapr
      • Envoy
      • Fluentd
      • Knative
      • Kubernetes
        • Cluster API
        • etcd
        • Helm
        • k3d
        • kind
        • Kubectl
        • MetalLB
        • Minikube
      • Open Application Model (OAM)
      • Unleash
    • Data storage
      • MySQL
      • MongoDB
        • Atlas
        • Compass
        • Evergreen
        • MongoDB 4.2
        • MongoDB 5.0
        • MongoDB design
        • MongoDB events
        • MongoDB driver for .NET
        • Ops Manager
        • Realm
      • Oracle
      • Redis
      • SQL Server
      • PostgreSQL
    • Frameworks & libraries
      • Angular
        • Angular CLI
        • Angular events
      • .NET
        • ASP.NET Core
        • Blazor
        • .NET 5.0
        • .NET 6.0
        • .NET CLI
        • .NET Core
        • .NET Events
        • .NET Logging
        • .NET Testing
        • NuGet
        • WPF
        • Xamarin
      • gRPC
      • Ionic
      • Jekyll
      • Node.js
        • Express
        • NPM
      • React
        • React Native
      • Redux
    • IDE
      • Visual Studio 2022
    • Languages
      • C#
        • C# 8.0
      • ECMAScript
      • GraphQL
      • JavaScript
        • webpack
        • Yarn
      • MS-DOS
      • PHP
      • PowerShell
      • Python
      • Swagger
      • TypeScript
    • Messaging
      • Azure Service Bus
      • RabbitMQ
    • Testing
    • Workstation
      • QGIS
      • Visual Studio 2019
      • Windows 10
      • Windows Subsystem for Linux
  • Collaborate
    • Marp
    • Microsoft 365
      • Microsoft Graph
      • SharePoint Framework
        • Fluent UI
        • SharePoint Framework UI components
  • Run
    • Cloud computing
      • Alibaba
      • AWS
      • Azure
        • Azure AD
        • Azure CLI
        • Azure Container Registry
        • Azure Portal
        • Azure Service Bus
      • Firebase
      • OVH
    • Hardware
      • Single-board computers
        • Odroid
        • Raspberry Pi
    • Infrastructure automation
      • Azure Resource Manager
      • Packer
      • Pulumi
      • Puppet
      • Terraform
        • HCL
        • Terraform CLI
        • Terraform Providers
    • Networking
      • HAProxy
      • nginx
    • Observability
      • Grafana Labs
        • Grafana
        • Loki
        • Tempo
      • OpenTelemetry
      • Prometheus
      • Splunk
    • Security
      • Falco
    • Systems
      • Linux
        • CentOS
        • eBPF
        • Linux Kernel
        • Rocky
        • Ubuntu
      • Windows Server
    • Virtualization
      • Hyper-V
      • Vagrant
  • Optimize
    • DevOps
  • Join
    • Companies
      • HashiCorp
Powered by GitBook
On this page
  • Learn
  • History
  • Key elements
  • Quick start
  • Learning path
  • Code samples
  • Usecases
  • Develop
  • Command line
  • Operate
  • Deployment

Was this helpful?

Export as PDF
  1. Collaborate
  2. Microsoft 365

SharePoint Framework

PreviousMicrosoft GraphNextFluent UI

Last updated 3 years ago

Was this helpful?

Page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and extending Microsoft Teams.

→

Learn

History

  • 2017: Microsoft introduced the SharePoint Framework as the recommended way to customize and extend SharePoint Online

Key elements

  • SharePoint Framework is modern client-side development

    • Types: Application customizers, Field customizers, Command sets

  • Workbench: a special SharePoint page that contains a single canvas that developers can add their web parts to. There are two different workbench options: local and hosted.

  • Web parts

    • Property pane

      • The property pane has two different modes: reactive and non-reactive

  • JavaScript agnostic but can be used with a framework (React in particular)

Read further:

Quick start

Learning path

Code samples

Usecases

Persistence

API calls

Logging

  • Default logging works on local workbench but not on SharePoint Online workbench

    • Install the PnP library

npm install @pnp/logging

Develop

Command line

# installs Yeoman
npm install --global yo

# installs Gulp
npm install --global gulp

# installs SharePoint Framework generator
npm install --global @microsoft/generator-sharepoint
# creates a SharePoint Framework client-side web part
yo @microsoft/sharepoint
  • Gulp

# builds local resources
gulp build

# starts the local web server without launching the browser
gulp serve --nobrowser

# opens configuration to edit initialPage (workbench URL, local or hosted)
vi config/serve.json

# bundles the solution
gulp bundle --ship

# packages the solution
gulp package-solution --ship

# tracks the generated SharePoint package
ls /sharepoint/solution/*.sppkg

Operate

Deployment

(, )

(, )

(, )

(, )

(, )

(, )

()

→

()

Read more about Gulp commands:

docs.microsoft.com/spfx
Extensions
SharePoint Framework UI components
Set up your Microsoft 365 tenant
Introduction to customizing and extending SharePoint
Get started with the SharePoint Framework
code
video
Develop web parts with the SharePoint Framework
Enable SharePoint Framework web part configuration with property panes
code
video
Work with SharePoint Content using the SharePoint Framework
code
video
Extend the SharePoint user interface with SharePoint Framework extensions
code
video
Leverage Microsoft Graph & third-party APIs
code
video
Deploy SharePoint Framework Components to Production
code
video
Use Office UI Fabric React components in your SharePoint client-side web part
video
Consume the Microsoft Graph in the SharePoint Framework
Microsoft 365 Patterns and Practices (PnP)
pnp/sp-starter-kit
PnP SharePoint Framework Client-Side Extension Samples
pnp/sp-dev-fx-extensions
PnP SharePoint Framework Client-Side Web Part Samples
pnp/sp-dev-fx-webparts
pnp/sp-dev-fx-library-components
Improve performance in SharePoint provider-hosted add-ins
Connect to Azure AD-secured APIs in SharePoint Framework solutions
Use Microsoft Graph in your solution
Set up your SharePoint Framework development environment
NPM
Microsoft SPFx Yeoman generator
PnP SPFx Yeoman generator
GitHub
Explore a SharePoint Framework project
Publish SharePoint Framework applications to the Marketplace