UNPKG

gd-sprest-js

Version:

SharePoint 2013/Online js components.

21 lines (20 loc) 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Label */ exports.Label = function (props) { // Set the class name var className = [ props.className || "", props.isDisabled ? "is-disabled" : "", props.isRequired ? "is-required" : "" ].join(' ').trim(); // Return the template return [ '<label class="ms-Label ' + className + '">', props.text || "", props.description ? '<i class="ms-Icon ms-Icon--Info is-description"><span>' + props.description + '</span></i>' : '', '</label>' ].join(""); };