import * as tslib_1 from "tslib";
import * as React from 'react';
import { DetailsList, DetailsRow } from 'office-ui-fabric-react/lib/DetailsList';
import { css } from 'office-ui-fabric-react/lib/Utilities';
import { createListItems } from '../../../utilities/exampleData';
import './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(DetailsRow, tslib_1.__assign({}, props, { onRenderCheck: _this._onRenderCheck, "aria-busy": false }));
        };
        _this._onRenderCheck = function (props) {
            return (React.createElement("div", { className: 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 || createListItems(500);
        return _this;
    }
    DetailsListCustomRowsExample.prototype.render = function () {
        return React.createElement(DetailsList, { items: _items, setKey: "set", onRenderRow: this._onRenderRow });
    };
    return DetailsListCustomRowsExample;
}(React.Component));
export { DetailsListCustomRowsExample };
//# sourceMappingURL=DetailsList.CustomRows.Example.js.map