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.VirtualizedListBasicExample2 = void 0;
    var items = [];
    var Item = function (props) {
        var item = props.item;
        return React.createElement("div", null, item.key);
    };
    var ExampleList = VirtualizedList_1.VirtualizedList;
    var VirtualizedListBasicExample2 = /** @class */ (function (_super) {
        tslib_1.__extends(VirtualizedListBasicExample2, _super);
        function VirtualizedListBasicExample2(props) {
            var _this = _super.call(this, props) || this;
            _this._renderItem = function (item, itemIndex) {
                return (React.createElement("div", { key: item.key, style: { height: 30, border: '1px solid blue' } },
                    React.createElement(Item, { item: item })));
            };
            // Populate with items for demos.
            if (items.length === 0) {
                for (var i = 0; i < 2000; i++) {
                    items.push({
                        key: "Item " + i,
                    });
                }
            }
            return _this;
        }
        VirtualizedListBasicExample2.prototype.render = function () {
            return (React.createElement("div", null,
                React.createElement(ScrollContainer_1.ScrollContainer, { scrollDebounceDelay: 200, className: VirtualizedListExampleStylesModule.fixedHeight },
                    React.createElement(ExampleList, { items: items, itemHeight: 30, onRenderItem: this._renderItem }))));
        };
        return VirtualizedListBasicExample2;
    }(React.Component));
    exports.VirtualizedListBasicExample2 = VirtualizedListBasicExample2;
});
//# sourceMappingURL=VirtualizedList.Basic2.Example.js.map