define(["require", "exports", "tslib", "react", "@fluentui/react-experiments/lib/VirtualizedList", "@fluentui/react-experiments/lib/utilities/scrolling/ScrollContainer", "./VirtualizedList.Example.scss"], function (require, exports, tslib_1, React, VirtualizedList_1, ScrollContainer_1, VirtualizedListExampleStylesModule) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.VirtualizedListBasicExample = void 0;
    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