"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/* tslint:disable:no-unused-variable */
var React = require("react");
/* tslint:enable:no-unused-variable */
var DetailsList_1 = require("office-ui-fabric-react/lib/DetailsList");
var Utilities_1 = require("office-ui-fabric-react/lib/Utilities");
var example_app_base_1 = require("@uifabric/example-app-base");
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;
        _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