import * as tslib_1 from "tslib";
import * as React from 'react';
import { ScrollablePane } from 'office-ui-fabric-react/lib/ScrollablePane';
import { Sticky, StickyPositionType } from 'office-ui-fabric-react/lib/Sticky';
import { lorem } from '@uifabric/example-app-base';
import './ScrollablePane.Example.scss';
var ScrollablePaneDefaultExample = /** @class */ (function (_super) {
    tslib_1.__extends(ScrollablePaneDefaultExample, _super);
    function ScrollablePaneDefaultExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ScrollablePaneDefaultExample.prototype.render = function () {
        var contentAreas = [];
        for (var i = 0; i < 4; i++) {
            contentAreas.push(this._createContentArea(i));
        }
        return (React.createElement(ScrollablePane, { className: 'scrollablePaneDefaultExample' }, contentAreas.map(function (ele) {
            return ele;
        })));
    };
    ScrollablePaneDefaultExample.prototype._getRandomColor = function () {
        var letters = 'BCDEF'.split('');
        var color = '#';
        for (var i = 0; i < 6; i++) {
            color += letters[Math.floor(Math.random() * letters.length)];
        }
        return color;
    };
    ScrollablePaneDefaultExample.prototype._createContentArea = function (index) {
        var style = {
            backgroundColor: this._getRandomColor()
        };
        return (React.createElement("div", { key: index },
            React.createElement(Sticky, { stickyPosition: StickyPositionType.Both, stickyClassName: 'largeFont' },
                React.createElement("div", { className: 'sticky', style: style },
                    "Sticky Component #",
                    index + 1)),
            React.createElement("div", { className: 'textContent' }, lorem(200))));
    };
    return ScrollablePaneDefaultExample;
}(React.Component));
export { ScrollablePaneDefaultExample };
//# sourceMappingURL=ScrollablePane.Default.Example.js.map