GithubHelp home page GithubHelp logo

aymkdn / sharepointplus Goto Github PK

View Code? Open in Web Editor NEW
216.0 41.0 57.0 2.46 MB

SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.

Home Page: http://aymkdn.github.io/SharepointPlus/

License: GNU Lesser General Public License v3.0

JavaScript 99.38% CSS 0.62%
javascript sharepoint

sharepointplus's Introduction

SharepointPlus

Average time to resolve an issue Percentage of issues still open

SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.

Documentation

Browse the online documentation here.

Quick Start

Node Environment

npm install sharepointplus

Then:

import $SP from 'sharepointplus'

Please, make sure to read the documentation to optimize your bundle size.

Browser Only

To directly use it in a browser:

  <script type="text/javascript" src="//cdn.jsdelivr.net/npm/sharepointplus/browser/sharepointplus.js"></script>

Usage / Examples

Update all items with an "Amount" value bigger than 1000:

$SP().list('My List Name').update({
  Title:"Too expensive"
}, {
  where:"Amount > 1000"
})
.then(function(res) {
  alert(res.passed.length+" items successfully updated!");
});

Get all items with "Requestor" as the current user and with "Default Color" is "pink":

$SP().list('ListName').get({
  fields:"Title,Size",
  where:"Requestor = '[Me]' AND Default_x0020_Color = 'pink'",
  orderby:"Size DESC",
  json:true
})
.then(function(data) {
  data.forEach(function(d) {
    console.log("Model = "+d.Title+" (size: "+d.size+")";
  })
});

More information

Please visit the online documentation to know more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.