office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
30 lines (28 loc) • 1.56 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 __());
};
define(["require", "exports", "react", "../../../../index"], function (require, exports, React, index_1) {
"use strict";
var LinkBasicExample = (function (_super) {
__extends(LinkBasicExample, _super);
function LinkBasicExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
LinkBasicExample.prototype.render = function () {
return (React.createElement("div", null,
React.createElement("span", null, "When a link has an href, "),
React.createElement(index_1.Link, { href: 'http://dev.office.com/fabric/components/link' }, "it renders as an anchor tag."),
React.createElement("span", null, " Without an href, "),
React.createElement(index_1.Link, null, "the link is rendered as a button"),
".",
React.createElement("span", null, " You can also use the disabled attribute to create a "),
React.createElement(index_1.Link, { disabled: true, href: 'http://dev.office.com/fabric/components/link' }, "disabled link"),
"."));
};
return LinkBasicExample;
}(React.Component));
exports.LinkBasicExample = LinkBasicExample;
});
//# sourceMappingURL=Link.Basic.Example.js.map