44

Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 2: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Are you in the right spot?

Page 3: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Julie TurnerPrincipal Architect

Professional developer since 1995

Working with SP since 2007

Blog: http://julieturner.net

LI: https://www.linkedin.com/in/juliemturner

Twitter: @jfj1997

GitHub / Slides: https://github.com/juliemturner/demos

Page 4: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 5: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Part 1 Agenda

Page 6: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 7: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

SharePoint 2007

Everything in the page came down from the server

Page 8: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

SharePoint 2010

We started to see more client side rendering

Page 9: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

SharePoint 2013

Page 10: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

High Level Structure of Building Client Side Solutions

Data Access / Initial

Manipulation

"Document Ready"

ViewModel /

Application Logic

Templates Application Styling

Page 11: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 12: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 13: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 14: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

What is a widget?

Page 15: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

What makes a good widget?

1ISOLATED – so they won’t interfere with other

widgets or the rest of the page

Can you run multiple copies of the widget on a

page?

2EFFICIENT – so they load quickly Does the page get noticeably slower as you add

widgets?

3SELF-CONTAINED – so they’re easy to reuse Does the widget work without special page

elements such as element ID’s, scripts, and CSS

references?

4MODERN – so they’re easier to write and maintain Is the widget written in a modern JavaScript

framework such as AngularJS or Knockout?

Page 16: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 17: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 18: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Services Across SharePoint Versions

Deprecated

Deprecated

Endpoint

/_vti_bin/listdata.svc

/_apiDeprecated

None

SOAP REST

https://graph.microsoft.com/v1.0

Page 19: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Reasons to Still Love SPServices

Page 20: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Simple SPServices Example

var p = $().SPServices({

webURL: "\Offices\Newton",

listName: "Announcements",

CAMLViewFields: "<ViewFields>" +

"<FieldRef Name='Title' />" +

"</ViewFields>"

});

$(p.responseXML).SPFilterNode("z:row")

.each(function () {

var thisEvent = $(this);

announcements.push({

Title: thisEvent.attr("ows_Title")

});

});

Page 21: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 22: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

REST requires XMLHttpRequest object

Page 23: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

$.ajax({

url: “https://my.sharepoint.com/_api/web/lists/getbytitle('" +

REQUESTS_LIST + "')/items",

method: "GET",

headers: { "Accept": "application/json; odata=verbose" },

success: loadRequestsSuccess,

error: loadRequestError

});

Page 24: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 25: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 26: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Namespaces

Variable

var myNamespace =

window.myNamespace ||

{};

myNamespace.myModule…

IIFE (if-ey)

(function(){

your code here

})();

Page 27: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Equal != Equal== (Loose equality)

=== (Strict equality)

Object.is (Strict equality +)

Page 28: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Modules – One patternfunction test() {

var myPrivateVariable = “Private”;

function myPrivateFunction(){

console.log(“Test”);

}

var myPublicFunction = function() {

myPrivateFunction();

return “Result”;

};

return {

myFunction: myPublicFunction

};

}

Page 29: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 30: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

A CSS tidbit@keyframes sideNavSlideIn {

from {left: 0px;}

to {left: -175px;}

}

@keyframes sideNavSlideOut {

from {left: -175px;}

to {left: 0px;}

}

#contentBox {

margin-left:40px;

}

#sideNavBox {

position: absolute;

background: #ffffff;

left:-175px;

margin: 0;

padding: 0 0 0 20px;

box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);

float:none;

animation-name: sideNavSlideIn;

animation-timing-function: ease-out;

animation-duration: .25s;

animation-iteration-count: 1;

z-index: 999;

}

#sideNavBox:hover{

left: 0px;

animation-name: sideNavSlideOut;

animation-timing-function: ease-out;

animation-duration: .5s;

animation-iteration-count: 1;

}

Page 31: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 32: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

cdnjs

Page 33: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

MomentJS

Page 34: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Font Awesome

Page 35: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

FullCalendar

Page 36: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

D3 / C3

• https://d3js.org/ http://c3js.org/

Page 37: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Image Rotators / Sliders

•http://www.jssor.com/

Page 39: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Bootstrap

Page 40: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Office UI Fabric

Page 41: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

SPServices

• https://spservices.codeplex.com/

• http://sympmarc.github.io/SPServices/

Page 42: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Widget Wrangler

Page 43: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}
Page 44: Are you in the right spot? - Nellis Consulting, LLCnellisconsultingllc.com/Resources/SPTechConSF2016Slides...A CSS tidbit @keyframes sideNavSlideIn {from {left: 0px;} to {left: -175px;}}

Bye, Bye!See you at Part 2

• Development Frameworks

• Best practices for deployment, maintenance, and version control

• What is SharePoint Framework

• “Power BI" in the client