import { __extends } from "tslib";
import * as React from 'react';
import { VirtualizedList } from '@uifabric/experiments/lib/VirtualizedList';
import { ScrollContainer } from '@uifabric/experiments/lib/utilities/scrolling/ScrollContainer';
import * as VirtualizedListExampleStylesModule from './VirtualizedList.Example.scss';
var items = [];
var ExampleList = VirtualizedList;
var VirtualizedListBasicExample = /** @class */ (function (_super) {
    __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, { className: VirtualizedListExampleStylesModule.fixedHeight },
                React.createElement(ExampleList, { items: items, itemHeight: 30, onRenderItem: this._renderItem }))));
    };
    return VirtualizedListBasicExample;
}(React.Component));
export { VirtualizedListBasicExample };
//# sourceMappingURL=VirtualizedList.Basic.Example.js.map