define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/DetailsList", "office-ui-fabric-react/lib/Utilities", "@uifabric/example-app-base", "./DetailsListExample.scss"], function (require, exports, tslib_1, React, DetailsList_1, Utilities_1, example_app_base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var _items;
    var DetailsListCustomRowsExample = /** @class */ (function (_super) {
        tslib_1.__extends(DetailsListCustomRowsExample, _super);
        function DetailsListCustomRowsExample(props) {
            var _this = _super.call(this, props) || this;
            _items = _items || example_app_base_1.createListItems(500);
            return _this;
        }
        DetailsListCustomRowsExample.prototype.render = function () {
            return (React.createElement(DetailsList_1.DetailsList, { items: _items, setKey: 'set', onRenderRow: this._onRenderRow }));
        };
        DetailsListCustomRowsExample.prototype._onRenderRow = function (props) {
            return (React.createElement(DetailsList_1.DetailsRow, tslib_1.__assign({}, props, { onRenderCheck: this._onRenderCheck, "aria-busy": false })));
        };
        DetailsListCustomRowsExample.prototype._onRenderCheck = function (props) {
            return (React.createElement("div", { className: Utilities_1.css('ms-DetailsRow-check DetailsListExample-customCheck', props.anySelected && 'is-any-selected'), role: 'button', "aria-pressed": props.isSelected, "data-selection-toggle": true },
                React.createElement("input", { type: 'checkbox', checked: props.isSelected })));
        };
        tslib_1.__decorate([
            Utilities_1.autobind
        ], DetailsListCustomRowsExample.prototype, "_onRenderRow", null);
        tslib_1.__decorate([
            Utilities_1.autobind
        ], DetailsListCustomRowsExample.prototype, "_onRenderCheck", null);
        return DetailsListCustomRowsExample;
    }(React.Component));
    exports.DetailsListCustomRowsExample = DetailsListCustomRowsExample;
});
//# sourceMappingURL=DetailsList.CustomRows.Example.js.map