Top Banner
SharePoint Framework (SPFx) Gosia Borzecka @gosiaborzecka
21

Overview of SharePoint Framework (SPFx)

Jan 22, 2018

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Overview of SharePoint Framework (SPFx)

SharePoint Framework (SPFx)

Gosia Borzecka

@gosiaborzecka

Page 2: Overview of SharePoint Framework (SPFx)

About me

@gosiaborzecka

www.gosiaborzecka.net

Page 3: Overview of SharePoint Framework (SPFx)

SharePoint Development

Farm based

Sanboxes

SharePoint Add-ins

Manual injecting JS file

Page 4: Overview of SharePoint Framework (SPFx)

What is SharePoint Framework (SPFx)?

Client-side SharePoint development

Open Source tooling

Responsive and mobile-ready

Works for SharePoint Online and SharePoint on-premises

Page 5: Overview of SharePoint Framework (SPFx)

Main Components• build & run the applicationsNodeJS

• manages the dependencies required for the applicationNpmjs

• automate the tasks of building and running the solutionGulp

• Build the application and compile into clean, simple JavaScript codeTypeScript

• create a solution structure for the applicationYeoman

Page 6: Overview of SharePoint Framework (SPFx)

Extra Components

• edit and manage the source codeVisual Studio Code

• contribute the source GitHub

• use any type of JS Framework (React, AngularJS, KnockoutJS etc..)JS Frameworks

Page 7: Overview of SharePoint Framework (SPFx)

How to start?

npm install –g bower npm install –g yo npm install –g tsd npm install –g gulp-clinpm i

@microsoft/generator-sharepoint

Page 8: Overview of SharePoint Framework (SPFx)
Page 9: Overview of SharePoint Framework (SPFx)
Page 10: Overview of SharePoint Framework (SPFx)
Page 11: Overview of SharePoint Framework (SPFx)
Page 12: Overview of SharePoint Framework (SPFx)

DEMO

Page 13: Overview of SharePoint Framework (SPFx)

Helpful commands yo@microsoft/sharepoint create new project / add new web partgulp bundle

build and bundle projectgulp serve

bundle project and start Workbenchgulp package-solution

build solution package (.spapp)gulp nuke

delete build and intermediate foldersgulp test

run tests--ship

argument to execute a release build

Page 14: Overview of SharePoint Framework (SPFx)

Property PanePropertyPaneTextField – get this by default with project

PropertyPaneButton

PropertyPaneCheckbox

PropertyPaneChoiceGroup

PropertyPaneCustomField

PropertyPaneDropdown

PropertyPaneHorizontalRule

PropertyPaneLabel

PropertyPaneLink

PropertyPaneSlider

Page 15: Overview of SharePoint Framework (SPFx)

Environmentimport { EnvironmentType } from '@microsoft/sp-client-base';

this.context.environment.type

Values:

•EnvironmentType.Tests – Tests context

•EnvironmentType.Local – SharePoint Workbench

•EnvironmentType.SharePoint – Modern SharePoint page

•EnvironmentType.ClassicSharePoint – Classic SharePoint Page

Page 16: Overview of SharePoint Framework (SPFx)

UI Fabric

Fonts, icon Colour

Page 17: Overview of SharePoint Framework (SPFx)

Microsoft Graph

Page 18: Overview of SharePoint Framework (SPFx)

SPFx is open source

https://github.com/OfficeDev/office-ui-fabric-react

https://github.com/OfficeDev/generator-office

https://github.com/SharePoint/sp-dev-docs

Page 19: Overview of SharePoint Framework (SPFx)

If you want to know more!

Dev Office• https://dev.office.com/sharepoint/docs/spfx/sharepoint-

framework-overview

Waldek Mastykarz • https://blog.mastykarz.nl/

Andrew Connell • http://www.andrewconnell.com/

SharePoint Saturday • http://www.spsevents.org/

UK Community Days • http://uk.communities.tech/

Page 20: Overview of SharePoint Framework (SPFx)
Page 21: Overview of SharePoint Framework (SPFx)

@gosiaborzecka

www.gosiaborzecka.net