@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
17 lines • 1.03 kB
JavaScript
define(["require", "exports", "tslib", "react", "../../Utilities", "./StaticList.scss"], function (require, exports, tslib_1, React, Utilities_1, stylesImport) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StaticList = /** @class */ (function (_super) {
tslib_1.__extends(StaticList, _super);
function StaticList() {
return _super !== null && _super.apply(this, arguments) || this;
}
StaticList.prototype.render = function () {
var _a = this.props, className = _a.className, items = _a.items, onRenderItem = _a.onRenderItem, _b = _a.listTagName, ListTag = _b === void 0 ? 'ul' : _b;
return (React.createElement(ListTag, { className: Utilities_1.css(stylesImport.root, className) }, items.map(function (item, index) { return onRenderItem(item, index); })));
};
return StaticList;
}(React.Component));
exports.StaticList = StaticList;
});
//# sourceMappingURL=StaticList.js.map