office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
26 lines • 3.56 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "../../demo/ComponentStatus/ComponentStatus", "./CommandBar.checklist", "./examples/CommandBar.Basic.Example", "./examples/CommandBar.ButtonAs.Example", "./examples/data"], function (require, exports, tslib_1, React, example_app_base_1, ComponentStatus_1, CommandBar_checklist_1, CommandBar_Basic_Example_1, CommandBar_ButtonAs_Example_1, data_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CommandBarBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/examples/CommandBar.Basic.Example.tsx');
var CommandBarButtonAsExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/examples/CommandBar.ButtonAs.Example.tsx');
var CommandBarPage = /** @class */ (function (_super) {
tslib_1.__extends(CommandBarPage, _super);
function CommandBarPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
CommandBarPage.prototype.render = function () {
var cmdBarParamsTextAndIcons = { items: data_1.items, overflowItems: data_1.overflowItems, farItems: data_1.farItems };
return (React.createElement(example_app_base_1.ComponentPage, { title: 'CommandBar', componentName: 'CommandBarExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/CommandBar', exampleCards: React.createElement("div", null,
React.createElement(example_app_base_1.ExampleCard, { title: 'CommandBar with overflowing menu items', code: CommandBarBasicExampleCode },
React.createElement(CommandBar_Basic_Example_1.CommandBarBasicExample, tslib_1.__assign({}, cmdBarParamsTextAndIcons))),
React.createElement(example_app_base_1.ExampleCard, { title: 'CommandBar custom buttons', code: CommandBarButtonAsExampleCode },
React.createElement(CommandBar_ButtonAs_Example_1.CommandBarButtonAsExample, tslib_1.__assign({}, cmdBarParamsTextAndIcons)))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/CommandBar.types.ts'),
require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.types.ts')
] }), overview: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/docs/CommandBarOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/docs/CommandBarDos.md')), donts: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/CommandBar/docs/CommandBarDonts.md')), related: React.createElement("a", { href: 'https://dev.office.com/fabric-js/Components/CommandBar/CommandBar.html' }, "Fabric JS"), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, CommandBar_checklist_1.CommandBarStatus)) }));
};
return CommandBarPage;
}(React.Component));
exports.CommandBarPage = CommandBarPage;
});
//# sourceMappingURL=CommandBarPage.js.map