office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
23 lines • 1.27 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/CommandBar"], function (require, exports, tslib_1, React, CommandBar_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CommandBarBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(CommandBarBasicExample, _super);
function CommandBarBasicExample(props) {
var _this = _super.call(this, props) || this;
_this.state = {
areNamesVisible: true,
areIconsVisible: true
};
return _this;
}
CommandBarBasicExample.prototype.render = function () {
var _a = this.props, items = _a.items, overflowItems = _a.overflowItems, farItems = _a.farItems;
return (React.createElement("div", null,
React.createElement(CommandBar_1.CommandBar, { items: items, overflowItems: overflowItems, farItems: farItems, ariaLabel: 'Use left and right arrow keys to navigate between commands' })));
};
return CommandBarBasicExample;
}(React.Component));
exports.CommandBarBasicExample = CommandBarBasicExample;
});
//# sourceMappingURL=CommandBar.Basic.Example.js.map