Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Use office ui fabric react to build beauty with SharePoint
1. ERIC OVERFIELD | PixelMill
Microsoft MVP & RD
USE OFFICE UI FABRIC
TO BUILD BEAUTY
WITH SHAREPOINT
http://pxml.ly/EO-Office-UI-Fabric
2. ERIC OVERFIELD
President & Co-Founder of PixelMill
Microsoft MVP, Office Servers & Services
Microsoft Regional Director
Published SharePoint Author
SharePoint Community Organizer & Contributor @ericoverfield
ericoverfield.com
3. PixelMill is a modern SharePoint Design Agency based in Northern California. On the forefront of
web design trends since 1998, PixelMill provides innovative collaboration portals to enhance the
user adoption of SharePoint intranets, extranets, and public facing sites.
PIXELMILL
@pixelmillteam
pixelmill.com
4. 1. Office UI Fabric Overview
2. Included UI Fabric in Projects
3. Utilizing and Extending UI Fabric
4. UI Fabric and the SharePoint Framework
OVERVIEW
9. @ericoverfieldericoverfield.com
Why you will use Office UI Fabric
• Consistency of interface with custom components
• SharePoint Framework has UI Fabric built in
• Allows developers to focus on functionality, not the look
• Speed up the development cycle
WHY OFFICE UI FABRIC
11. @ericoverfieldericoverfield.com
Office UI Fabric comes in different flavors
• Fabric Core Styles
• Core elements of the design language, including icons, colors, type, and grid
• Fabric React
• Robust, up-to-date components built with the React framework
• Fabric JS
• Simple, visuals-focused components that you can extend, rework, and use
• Angular JS
• Community-driven project to build components for Angular-based apps
OFFICE UI FABRIC – CHOOSE THE RIGHT FLAVOR
12. @ericoverfieldericoverfield.com
Office UI Fabric Core – Styles and components
• The starting place for utilizing the core design
OFFICE UI FABRIC CORE
Styles
• Animations
• Brand icons
• Colors
• Icons
• Layout
• Localization
• Typography
• Utilities
17. @ericoverfieldericoverfield.com
OFFICE UI FABRIC INTEGRATION METHODS
Using Office UI Fabric
• Simplest method to connect to Fabric – call Fabric CSS / JS
• <link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/1.2.0/css/fabric.min.css"
/>
• <link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-
js/1.2.0/css/fabric.components.min.css" />
• <script src="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/1.2.0/js/fabric.min.js"></script>
• If you are using NodeJS:
• npm --save install office-ui-fabric office-ui-fabric-js office-ui-fabric-react
• Then link in your source
• Download the source and include in toolchain
• https://github.com/OfficeDev/office-ui-fabric-core
• https://github.com/OfficeDev/office-ui-fabric-js
• https://github.com/OfficeDev/office-ui-fabric-react
• Update gulpfile.js to include components
18. @ericoverfieldericoverfield.com
OFFICE UI FABRIC INTEGRATION WITH SHAREPOINT
Using Office UI Fabric in SharePoint
• Obtain source if including or customizing Fabric direct in project
• Update the Master Page
• Less ideal as custom master pages are not recommended
• Alternative CSS / JavaScript Embed
• Install via PnP / Feature Framework / PowerShell
• Include link / script tags in custom webparts
• SharePoint Framework includes pre-integration
21. @ericoverfieldericoverfield.com
Office UI Fabric React
• Office UI Fabric pre-integrated with React
• Community project existing for combining with AngularJS
• Native to SharePoint Framework
• Pre-included in yeoman template, no need for special tricks
• Where team appears to be spending effort
• i.e. Fabric React more robust than Fabric JS
OFFICE UI FABRIC REACT
24. Improve UI Fabric with your own requirements
• UI Fabric built on open source tooling
• NodeJS, gulp, etc
• Can easily add your own components
• Enhanced styles
• JS Components
• UI Fabric updates often though, be mindful of customizations
• May lose custom code if not careful with update
EXTEND THE UI FABRIC
26. 1. Learn by doing
• Get started now
2. Move to React / Angular
• A rendering engine gets to closer to SPFx
3. Watch for updates, they keep coming
• New styles, controls and more
4. Look at examples for what controls are possible
• You will find ideas you hadn’t considered
RECOMMENDATIONS
27. REVIEW
1. Office UI Fabric Overview
2. Included UI Fabric in Projects
3. Utilizing and Extending UI Fabric
4. UI Fabric and the SharePoint Framework
Slides will be available from blog and twitter
A look at what Office UI Fabric is, how to get it, use it and improve it
Focus on SharePoint direct integration, but could also use in Add-ins and other projects with similar techniques
DEMO HEAVY
Get screenshots of each from:
https://dev.office.com/fabric#/get-started
Also, could be make this more of a table or column based?
Look at Fabric UI website
Primary focuses and how to use site
Look at the Office UI Fabric in action on a demo site with a few webparts on a page already styled with fabric
List view using table
Responsive grid
How about a script editor webpart that pulls in a script that does magic with handlebars.
Pull in list data
Create a form in a dialog
a navigation bar or breadcrumb
https://dev.office.com/fabric#/get-started
Lst of core components from https://dev.office.com/fabric#/get-started
Styles and component and icons
Look to download and include UI Fabric in toolchain of custom webpart project
Webpart may be a part of the previous demo
Start up a spfx webpart (how about task list demo)
Could also use a native SP implementation using a CEWP for basic code, JS Embed for including react and rest