gd-sprest-js
Version:
SharePoint 2013/Online js components.
17 lines (16 loc) • 674 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* CheckBox
*/
exports.CheckBox = function (props) {
// Return the template
return [
'<div class="ms-CheckBox ' + (props.className || "") + '">',
'<input tabindex="-1" type="checkbox" class="ms-CheckBox-input"></input>',
'<label role="checkbox" class="ms-CheckBox-field field-label' + (props.disable ? " is-disabled" : "") + '" tabindex="0" aria-checked="" name="checkbox' + props.label + '">',
'<span class="ms-Label' + (props.required ? ' is-required' : '') + '">' + props.label + '</span>',
'</label>',
'</div>'
].join('\n');
};