define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/DetailsList", "office-ui-fabric-react/lib/Utilities", "../../../utilities/exampleData", "./DetailsListExample.scss"], function (require, exports, tslib_1, React, DetailsList_1, Utilities_1, exampleData_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;
            _this._onRenderRow = function (props) {
                return React.createElement(DetailsList_1.DetailsRow, tslib_1.__assign({}, props, { onRenderCheck: _this._onRenderCheck, "aria-busy": false }));
            };
            _this._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 })));
            };
            _items = _items || exampleData_1.createListItems(500);
            return _this;
        }
        DetailsListCustomRowsExample.prototype.render = function () {
            return React.createElement(DetailsList_1.DetailsList, { items: _items, setKey: "set", onRenderRow: this._onRenderRow });
        };
        return DetailsListCustomRowsExample;
    }(React.Component));
    exports.DetailsListCustomRowsExample = DetailsListCustomRowsExample;
});
//# sourceMappingURL=DetailsList.CustomRows.Example.js.map