sharepoint framework, react and office ui sps paris 2016 - d01

36
Sonja Madsen D01: SharePoint Framework, React and Office UI Fabric May 28th 2016 #SPSParis @sonjamadsen

Upload: sonja-madsen

Post on 09-Jan-2017

1.213 views

Category:

Internet


1 download

TRANSCRIPT

Page 1: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Sonja MadsenD01: SharePoint Framework, React and Office UI FabricMay 28th 2016#SPSParis @sonjamadsen

Page 2: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Diamond

Platinum

Gold

Silver

Organizers& Community

www.spsevents.org/city/Paris/Paris2016

Keynote Speaker: Jeff Teper Microsoft Corporate

Vice-PresidentSharePoint + OneDrive

Donation

Page 3: SharePoint Framework, React and Office UI SPS Paris 2016 - d01
Page 4: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Dont’ miss / Ne ratez pasKeynote Jeff Teper Corporate Vice President - OneDrive + SharePoint

Who is Jeff Teper: A true leader; leading product strategy and engineering for consumer and enterprise business with >300M users and >$3 billion in revenues. Managing 800+ person engineering team spanning cloud services to mobile applications.

Page 5: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Tombala / Raffle

After Jeff Teper’s KeynoteAprès la Keynote de Jeff Teper

2

4

21

4

4

3

Page 6: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Framework,

React,

Office UI Fabric

SPS Paris 2015, Branding Office 365SPS Paris 2016, SharePoint Framework, Office UI Fabric, React

Page 7: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Microsoft MVP, SONJAsAPPSBest International Developer

Sonja Madsen

Page 8: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Framework, React, Office UI Fabric

Page 9: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Office UI Fabric

dev.office.com/fabric/stylesFonts, colorsGridIconsControls

Page 10: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

The Grid

Page 11: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Demo Office UI Fabric

Page 12: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Framework • Client-side web parts• List-based and page-based

applications• Webhooks• The future of SharePoint

development

Page 13: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

No isolated app webNo app domain

Page 14: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Development• Visual Studio Code• TypeScript• React is a suggested framework• Office UI Fabric

Page 15: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Development

&

Visual Studio CodeVisual Studio

&

SharePoint 2016

WORKBENCH

Page 16: SharePoint Framework, React and Office UI SPS Paris 2016 - d01
Page 17: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Demo Web Part and Workbench

Page 18: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

What’s new• TypeScript –> JavaScript• LESS -> CSS• .spapp package• Hosting of js and other files• No cross-domain• No .aspx page with HTML

Page 19: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

context = new SP.ClientContext.get_current();

var context var context

var context var context

Why TypeScript

Page 20: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

JavaScript Patterns

function getImages() { context = new SP.ClientContext.get_current(); var request = new SP.WebRequestInfo(); var url = rssurl; var account = getProperty("Account");}

var myApp = (function () { var getImages = function () { context = new SP.ClientContext.get_current(); var request = new SP.WebRequestInfo(); var url = rssurl; var account = getProperty("Account");};

Page 21: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

.spapp package

No .wsp, no .js, no .css, no images

Page 22: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Microsoft Azure CDN point of presence (POP) locations

Page 23: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

.js file on CDN

.js file in Style Library

.js file in the Scripts folder

.js file in Style Library

Page 24: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Concerns / Issues

• Updates and versioning• IP: Anonymous access to .js and .css files that are no

longer within the app• CDN hosting and security: files that have access to your

data• Reference my .js files - highjack functionality and design

Page 25: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Reactjs• React is front end library developed by Facebook• Used for handling view layer for web and mobile apps• JSX − JSX is JavaScript syntax extension• Components − everything is a component• Unidirectional data flow and Flux − React

implements one way data flow• Virtual DOM which is JavaScript object• Inline templating and JSX

Page 26: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Demo React

Page 27: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

List-based applications

A list with custom list form pages

Main page

Any other page

New item, Edit item, Display item

Page 28: SharePoint Framework, React and Office UI SPS Paris 2016 - d01
Page 29: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Demo List-based application

Page 30: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Page-based applicationsSite Pages Library

Pages

Page 31: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Demo page-based application

Page 32: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Webhooks• List item receivers• Add item, delete item, check-out, check-in

Page 33: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Add-ins - Advantages• You can hide the lists from end-user• Both pages and an app part• .aspx page – HTML• Images, scripts, stylesheets hosted on SharePoint• Isolated is not always a bad thing

Page 34: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Framework - Advantages• Responsive mobile friendly• No iframe• Dynamic properties• Webhooks• List-based and Page-based• No need for cross-domain library to access SharePoint

resources

Page 35: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

SharePoint Framework @sonjamadsen

sp2013.blogspot.com [email protected]

Page 36: SharePoint Framework, React and Office UI SPS Paris 2016 - d01

Thank you!

Online evaluation formEvaluations en ligne

http://bit.ly/SPSParis2016Eval

Merci !