"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var VirtualizedList_1 = require("@uifabric/experiments/lib-commonjs/VirtualizedList");
var ScrollContainer_1 = require("@uifabric/experiments/lib-commonjs/utilities/scrolling/ScrollContainer");
var VirtualizedListExampleStylesModule = require("./VirtualizedList.Example.scss");
var items = [];
var ExampleList = VirtualizedList_1.VirtualizedList;
var VirtualizedListBasicExample = /** @class */ (function (_super) {
    tslib_1.__extends(VirtualizedListBasicExample, _super);
    function VirtualizedListBasicExample(props) {
        var _this = _super.call(this, props) || this;
        _this._renderItem = function (item, itemIndex) {
            return (React.createElement("div", { key: item.key, style: { height: 30 } }, item.key));
        };
        // Populate with items for demos.
        if (items.length === 0) {
            for (var i = 0; i < 2000; i++) {
                items.push({
                    key: "Item " + i,
                });
            }
        }
        return _this;
    }
    VirtualizedListBasicExample.prototype.render = function () {
        return (React.createElement("div", null,
            React.createElement(ScrollContainer_1.ScrollContainer, { className: VirtualizedListExampleStylesModule.fixedHeight },
                React.createElement(ExampleList, { items: items, itemHeight: 30, onRenderItem: this._renderItem }))));
    };
    return VirtualizedListBasicExample;
}(React.Component));
exports.VirtualizedListBasicExample = VirtualizedListBasicExample;
//# sourceMappingURL=VirtualizedList.Basic.Example.js.map