"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 Breadcrumb_1 = require("office-ui-fabric-react/lib/Breadcrumb");
var Utilities_1 = require("../../../Utilities");
var BreadcrumbStaticExample = (function (_super) {
    tslib_1.__extends(BreadcrumbStaticExample, _super);
    function BreadcrumbStaticExample() {
        return _super.call(this) || this;
    }
    BreadcrumbStaticExample.prototype.render = function () {
        return (React.createElement("div", { style: { display: 'inline-block' } },
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'Files', 'key': 'Files', onClick: this._onBreadcrumbItemClicked },
                    { text: 'This is folder 1', 'key': 'f1', onClick: this._onBreadcrumbItemClicked },
                    { text: 'This is folder 2', 'key': 'f2', onClick: this._onBreadcrumbItemClicked },
                    { text: 'This is folder 3', 'key': 'f3', onClick: this._onBreadcrumbItemClicked },
                    { text: 'This is folder 4', 'key': 'f4', onClick: this._onBreadcrumbItemClicked },
                    { text: 'This is folder 5', 'key': 'f5', onClick: this._onBreadcrumbItemClicked, isCurrentItem: true },
                ], 
                // Returning undefined to OnReduceData tells the breadcrumb not to shrink
                onReduceData: function (data) { return undefined; }, maxDisplayedItems: 3, ariaLabel: 'Website breadcrumb' })));
    };
    BreadcrumbStaticExample.prototype._onBreadcrumbItemClicked = function (ev, item) {
        console.log("Breadcrumb item with key \"" + item.key + "\" has been clicked.");
    };
    return BreadcrumbStaticExample;
}(React.Component));
tslib_1.__decorate([
    Utilities_1.autobind
], BreadcrumbStaticExample.prototype, "_onBreadcrumbItemClicked", null);
exports.BreadcrumbStaticExample = BreadcrumbStaticExample;

//# sourceMappingURL=Breadcrumb.Static.Example.js.map
