Icons

Bootstrap provides a list of the available icons. Icons is a method using the IconTypes enumerator to render a specified icon. The default size rendered is 32x32, unless specified.

Icons(iconType?:number, height?:number, width?:number):HtmlElement

JavaScript

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

// Add an icon to the target element
var el = document.querySelector("#icon");
el.appendChild($REST.Icons($REST.IconTypes.BootstrapReboot));

TypeScript

import { Icons, IconTypes } from "gd-sprest-bs";

let el = document.querySelector("#icon");
el.appendChild(Icons(IconTypes.BootstrapReboot));