less than 1 minute read

The gd-sprest-bs library includes the gd-sprest extends the gd-bs library, which includes the Bootstrap Framework and Icons to create modern components in SharePoint 2013/Online (Classic) environments.

Getting Started

Components

Web Parts

Installation

npm i --save gd-sprest-bs

JavaScript Reference

var $REST = require("gd-sprest-bs");

TypeScript Reference

import { Components, WebParts } from "gd-sprest-bs";

Reference the Script

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gd-sprest-bs/8.3.5/gd-sprest-bs.min.js"></script>

Styling

The bootstrap css will only be applied to elements with a parent element containing the bs class. This will ensure that other elements on the page are not be affected.

<div class="bs">
    <!-- Elements will have bootstrap css applied -->
</div>