1.0.7 • Published 4 years ago

sppagecontextinfo v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

sppagecontextinfo

SharePoint page context object for classic and modern pages

Description

This package allows you to access useful SharePoint page context info object no matter if it is classic or modern site.

Installation

npm i sppagecontextinfo

Usage

Use SPPageContextInfo.get method to access _spPageContextInfo object. Context object is returned asynchronously with Promise.

import { SPPageContextInfo } from 'sppagecontextinfo';
SPPageContextInfo.getContext().then(context=>{
  console.log(context.webAbsoluteUrl);
});
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago