@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
26 lines • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var FocusZone_1 = require("office-ui-fabric-react/lib/FocusZone");
// TODO: move this file to Accordion
var Accordion_1 = require("@uifabric/experiments/lib/Accordion");
var CollapsibleSectionAccordionExample = /** @class */ (function (_super) {
tslib_1.__extends(CollapsibleSectionAccordionExample, _super);
function CollapsibleSectionAccordionExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
CollapsibleSectionAccordionExample.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(FocusZone_1.FocusZone, null,
React.createElement("p", null, "TODO: Add styling and state control so that only one item is expanded at a time"),
React.createElement(Accordion_1.Accordion, null,
React.createElement(Accordion_1.Accordion.Item, { title: "Title 1" }, "Accordion Item 1!"),
React.createElement(Accordion_1.Accordion.Item, { title: "Title 2" }, "Accordion Item 2!"),
React.createElement(Accordion_1.Accordion.Item, { title: "Title 3" }, "Accordion Item 4!"),
React.createElement(Accordion_1.Accordion.Item, { title: "Title 4" }, "Accordion Item 4!")))));
};
return CollapsibleSectionAccordionExample;
}(React.Component));
exports.CollapsibleSectionAccordionExample = CollapsibleSectionAccordionExample;
//# sourceMappingURL=CollapsibleSection.Accordion.Example.js.map