office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
26 lines (24 loc) • 1.9 kB
JavaScript
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require('react');
var index_1 = require('../../components/index');
var DocumentCard_Basic_Example_1 = require('./examples/DocumentCard.Basic.Example');
var DocumentCard_Complete_Example_1 = require('./examples/DocumentCard.Complete.Example');
var DocumentCardBasicExampleCode = require('./examples/DocumentCard.Basic.Example.tsx');
var DocumentCardCompleteExampleCode = require('./examples/DocumentCard.Complete.Example.tsx');
var DocumentCardPage = (function (_super) {
__extends(DocumentCardPage, _super);
function DocumentCardPage() {
_super.apply(this, arguments);
}
DocumentCardPage.prototype.render = function () {
return (React.createElement("div", null, React.createElement("h1", {className: 'ms-font-xxl'}, "DocumentCard"), React.createElement("div", null, "A card representation of a document. Can be configured with various card parts, including a preview, title, and location."), React.createElement("h2", {className: 'ms-font-xl'}, "Examples"), React.createElement(index_1.ExampleCard, {title: 'DocumentCard Basic', code: DocumentCardBasicExampleCode}, React.createElement(DocumentCard_Basic_Example_1.DocumentCardBasicExample, null)), React.createElement(index_1.ExampleCard, {title: 'DocumentCard Complete', code: DocumentCardCompleteExampleCode}, React.createElement(DocumentCard_Complete_Example_1.DocumentCardCompleteExample, null)), React.createElement(index_1.PropertiesTableSet, {componentName: 'DocumentCard'})));
};
return DocumentCardPage;
}(React.Component));
exports.DocumentCardPage = DocumentCardPage;
//# sourceMappingURL=DocumentCardPage.js.map