"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var DetailsList_1 = require("office-ui-fabric-react/lib/DetailsList");
var Utilities_1 = require("office-ui-fabric-react/lib/Utilities");
var exampleData_1 = require("../../../utilities/exampleData");
require("./DetailsListExample.scss");
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